…if you meant how to select a row with code as opposed to actually clicking on it then …from the demos – http://trirand.com/jqgrid/jqgrid.html – Advanced
It's definitely the setSelection method I need. But, I need it to execute after all my grids have loaded, and not on a onClick event (as in the example).
…then just do it when you need to. I've just tried it, as I needed to the same, and it worked fine. I have a number of grids that initialise and load when the page is loaded and in addition to that I select a default row within one of those grids (grid_r)…. so I do (my function names)
initialiseGrids();
loadGridData();
$(”#grid_r”).setSelection(curr_ID);
where curr_ID is my default row number.
That then selects the row for me and executes the OnRowSelect function which does whatever it does etc.
As long as the grid is there you can do it whenever you want within your code.