Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Paging in gridview, reset page to 1
Message
De
28/08/2007 15:56:16
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
WebForms
Titre:
Paging in gridview, reset page to 1
Divers
Thread ID:
01250999
Message ID:
01250999
Vues:
131
I have a webform with a gridview and an objectdatasource. I enabled paging on my gridview. The paging works great when I populate the objectdatasource.

The only problem I have is if I am on page 9 in the gridview and I re-populate the objectdatasource, the data displays correctly in my gridview but the page that is showing is page 9. I would like the paging to reset to page 1. How can I do this?

For example, query1 might display 15 pages of data. Query2 might display 4 pages of data. If query1 is displaying in the gridview and I am on page 9 of 15 and press the button to display query2's results, the gridview page sets it's self to page 4 of 4. I would like the page reset to page 1 of x. Is there a property to set for this?

Thanks,

Jerry
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform