Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Paging in gridview, reset page to 1
Message
From
28/08/2007 15:56:16
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
WebForms
Title:
Paging in gridview, reset page to 1
Miscellaneous
Thread ID:
01250999
Message ID:
01250999
Views:
132
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
Next
Reply
Map
View

Click here to load this message in the networking platform