getDataLenght() returns the rows rendered in the grid, and when this grid has row grouping it returns both, the group header rows and the item rows.