如何清除 Detail的資料?

var rows =
$("#dataGridDetail").datagrid('getRows');



var cnt = rows.length;



for (var i = cnt - 1 ; i >= 0 ;
i--) {



$('#dataGridDetail').datagrid('deleteRow',
0);



}