Grab id of first row onload

I need to grab the ID of first row when the grid is loaded with data from an xml file. How can I accomplish this?


You can use following code:


mygrid.loadXML(“grid.xml”,function(){


var id=mygrid.getRowId(0);


});