Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Multiple pages for a DataList?

0 views
Skip to first unread message

Sorin

unread,
Apr 16, 2003, 9:11:18 AM4/16/03
to
How can I support multiple pages for a DataList web control? (For example,
if too many
items on the datalist, I would like them to be split in different pages,
just like DataTable does automatically after setting AllowPaging and
ItermsPerPage properties. DataList doesn't seem to have similar properties,
why?

--
Sorin


Ryan Trudelle-Schwarz

unread,
Apr 16, 2003, 12:16:25 PM4/16/03
to
"Sorin" <sdo...@hotmail.com> wrote

Depending on your data source, it is fairly easy to create a wrapper data
source that pages it. For example, with a datareader you can easily wrap
this in a custom IDataReader that will only "Read" the current page. For a
DataTable, you can copy the rows that belong to the current page into a new
DataTable and use that as the source.

I'm sure there are many examples of paging a data source online.


0 new messages