var rows =$("#dataGridDetail").datagrid('getRows');
var cnt = rows.length;
for (var i = cnt - 1 ; i >= 0 ;i--) {
$('#dataGridDetail').datagrid('deleteRow',0);
}