I have a GridView with paging. When I try to count gridview row with gridview.rows.count, It gives me row count for current page only.
How can I get total rows of G
If you are binding using the datatable or other datasource you can show the total records from the datasource. For example
if (dtLog != null && dtLog .Rows.Count >= 0) { lblTotal.Text = "Total " + Convert.ToString(dtLog .Rows.Count) + " records."; }