By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,965 Members | 1,468 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,965 IT Pros & Developers. It's quick & easy.

Can I make my collection "data pageable"?

P: n/a
Hi all,

I have my own collection own which implements ienumerable and ienumator.

I was recently using a GridView and I was prompted that I could not turn on
paging because the data source (my collection) was not data pageable. I
subsequently added a property to my collection to return the data as a
datatable and all was good, however, I would much prefer to not do this, and
keep the source as my collection.

Thus, is it possible to make my collection data pageable?

Any info would be appreciated.

Regards

Rob
Aug 17 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On 17 Aug, 09:19, "Rob Meade" <ku.shn.tsews.t...@edaem.borwrote:
Hi all,

I have my own collection own which implements ienumerable and ienumator.

I was recently using a GridView and I was prompted that I could not turn on
paging because the data source (my collection) was not data pageable. I
subsequently added a property to my collection to return the data as a
datatable and all was good, however, I would much prefer to not do this, and
keep the source as my collection.

Thus, is it possible to make my collection data pageable?

Any info would be appreciated.

Regards

Rob
Yes, there's a couple of ways you could do this. One way would be to
use the PagedDataSource class and return an instance of that from your
class. If you want to see how this class can be used by a control, you
can have a look at the example here:

http://aspnetlibrary.com/articledeta...-to-a-repeater

Aug 17 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.