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
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Swapnasagar PandaPosted Aug 18, 2012, 7:38 AM
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.
Poppa WallacePosted Aug 18, 2012, 7:18 AM
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