Wednesday, June 29, 2011

How to return back to a specific page in a gridview list?

How to return back to a specific page in a gridview list?

You can save the PageIndex into Session or ViewState. In the Page_Load event of GridView page you can check it first. If the session is not null, then go to that page with setting PageIndex and rebinding GridView.

No comments: