Last Page?

2 posts, 0 answers
  1. Kevin J
    Kevin J avatar
    17 posts
    Member since:
    Jun 2008

    Posted 17 Mar 2010 Link to this post

    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
  2. robertw102
    robertw102 avatar
    265 posts
    Member since:
    Jul 2007

    Posted 17 Mar 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top