Solution 1 by Sandeep Mewara
is absolutely correct.
The client side functionality of
is provided by
as explained here
If the members given on this page are seen,
GetColumnsCount, GetPageCount and GetVisibleRowsOnPage
are available, but a method or property to get total rows of the
is not available as this data may not available on the client side, without querying the server side.