The 'insertRow' method of datagrid is supported since version 1.2.3, download it if need.
Try run the following code:

$('#tt').datagrid('insertRow',{index:1,row:newrow}); // this statement will insert a new row to the second row
$('#tt').datagrid('beginEdit',1); // edit the inserted row, notice that the index parameter start from 0