This is a migrated thread and some comments may be shown as answers.

Last Page?

1 Answer 37 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kevin J
Top achievements
Rank 1
Kevin J asked on 17 Mar 2010, 08:39 PM
Hello,

  I have a RadGrid built in the code behind and displayed on the page at run time.  I'd like to display the last page rather than the first page.  I searched around but couldn't find an example or anything on how to do this.  It's been awhile since I've worked with the RadGrid so I may just be overlooking the obvious.

Thanks for any help
Kevin

1 Answer, 1 is accepted

Sort by
0
robertw102
Top achievements
Rank 1
answered on 17 Mar 2010, 09:56 PM
I believe if you set the CurrentPageIndex to the last page in the PageCount, that it should show the last page.

Like so:

RadGrid1.CurrentPageIndex = RadGrid1.PageCount - 1;

I hope that helps.
Tags
Grid
Asked by
Kevin J
Top achievements
Rank 1
Answers by
robertw102
Top achievements
Rank 1
Share this question
or