[ASP.NET 2.0] Repeater control & paging, how??

  • Thread starter Thread starter Jeff
  • Start date Start date
J

Jeff

Hey

ASP.NET 2.0

GridView have AllowPaging & PageSize for the letting the GridView span
multiple pages.

But is the same allowed on a Repeater control? I didn't see any properties
like AllowPaging or PageSize on the Repeater control, so I guess it isn't
possible? if it is possible maybe somebody here could give me a tip on how
it is done on a Repeater control?

Any Suggestions?

Jeff
 
There is nothing in the repeater control for this. The GridView and DataGrid
were designed with paging in mind. The Repeater was simply designed to allow
a datasource to be formatted with templated output. You would have to make
your own paging system, which could be a large pain depending upon the
database. SQL Server 2005 has some nice features that would let you limit a
resultset to certain rows (the RowNumber feature), but a lot of other
databases don't. You would then probably find it best to use a datatable as
you could pull certain rows out of it into another datatable and then bind
to the subset of data.
 
Back
Top