returns the number of rows in the grid (in case of dynamic mode it will return an expected number of rows)
var count=myTreeGrid.getRowsNum();