add new row with id of rowCount + 1

Hi,



I am using dhtml xgrid,

I have a column called rownumber, I have to add a row at the end of all rows with id of total rowCount + 1,

is there any way to find total number of rows exist in a grid?



please suggest me to find the total number of rows…



/Thanks

Raj

is there any way to find total number of rows exist in a grid?
This data can be taken as
    var count = grid.getRowsNum();

By the way, grid has special type of column - ‘cntr’ - which automatically shows row number as its value.