Get last page index in gridview

Posted by Venkatesh under ASP.NET on 8/24/2011 | Points: 10 | Views : 4664 | Status : [Member] | Replies : 1
Hi,

I am using gridview, which is having 92 records. here i am setting page index=10.

My question:How to get last page index value in gridview?

Thanks
Venkatesh.P




Responses

Posted by: Jpchoudhari on: 8/24/2011 [Member] Starter | Points: 25

Up
0
Down
you can use

Math.Ceiling( "Total No of Records" / "PageSize")

Kind Regards,
Jay

Venkatesh, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response