Required library edition: Required library file: dhtmlxgrid.js
returns the number of rows in the grid (in case of dynamic mode it will return expected number of rows)
var count=mygrid.getRowsNum();
See also: getColumnsNum, forEachRow