$("#result_table").jqGrid('setSelection',"13"); var s; s = $("#result_table").jqGrid('getGridParam','selarrrow'); alert(s);