Last row id in the grid

Hi,

I want to retrieve the last row id of the grid. Is that possible? if yes, could you please tell me how to do it. Also is there a way to get max row id of the grid?

Thanks for your help in advance.



number of rows in grid can be taken as

    var count = grid.getRowsNum();

last row id

    var id = grid.getRowId(grid.getRowsNum()-1);