In my code i ve set allow paging =true for my grid.
I can find the last page, but i am unable to find the last page record count.
gv.Rows.Count -- is always giving current page record count. Any help is greatly welcomed.
Thanx
Swapnasagar
How to check the row count of the last page of a grid where paging is true
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Poppa Wallace97 reputationPosted Aug 18, 2012, 3:18 AM EDT
GridView1.AllowPaging = False
//bind datasource
//display the row count in a label (or any other output form you choose)
lblCount.Text = "Records returned: " & GridView1.Rows.Count
//re-enable paging
GridView1.AllowPaging = True
Swapnasagar Panda19 reputationPosted Aug 18, 2012, 3:38 AM EDT
Your approach will give total records in the grid. But only i want to know how many records i ve in the last page of the Grid. Hope my question is clear to you.
thanks for answering., if any other suggestions pls tell.