Thursday, March 29, 2012

Paging through a datagrid

I have a datagrid that contains hundreds of items. I want to be able to sho
w
25 per page and then use the page numbers on the bottom of the datagrid so
that the user can scan through the pages to find the record they are looking
for.
However, when I click page 2, for instance, it doesn't do anything and the
same records show up to the user.
Any help on how I can solve this problem would be appreciated.
Regards
BrianPaging through a datagrid in ASP.NET 1.x requires writing customized code fo
r
the OnPageIndexChanged event. Refer to the Quickstart tutorials for a sampl
e:
http://samples.gotdotnet.com/quicks.../datagrid10.src
The MSDN has also another helpful article about those common DataGrid
mistakes:
http://msdn.microsoft.com/library/d...ridmistakes.asp
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"bbdobuddy" wrote:

> I have a datagrid that contains hundreds of items. I want to be able to s
how
> 25 per page and then use the page numbers on the bottom of the datagrid so
> that the user can scan through the pages to find the record they are looki
ng
> for.
> However, when I click page 2, for instance, it doesn't do anything and the
> same records show up to the user.
> Any help on how I can solve this problem would be appreciated.
> Regards
> Brian

0 comments:

Post a Comment