Ok, I tried as a parameter to the editrow the following line of code:
jQuery(”#”+subgrid_table_id).jqGrid('editRow',id,true,true,”/Loan/SubGridEdit”, subgrid_table_id,AfterEdit);
and the AfterEdit function has the code:
function AfterEdit(rowid, response, subgrid_table_id)
{