How to sort a particular page in gridview?

Gridview Disappear when user changes the page of Gridview in asp.net?

  • i have lots of record on gridview fethching from Access DB. i have connected my gridview by code, not by wizard procedure. now whenever i run that page. Its shows the first page of Gridview, but when i press page 2 or 3 or ... , the gridview disappear. how it happens i ddnt find it...

  • Answer:

    you should add gridview page index changing event and append this code into the event. gridview1.pageindex=e.newpageindex; then fill the grid.

meetkash... at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

make sure you rebind the gridview control with DataBind() method during the postback

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.