Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / August 2007

Tip: Looking for answers? Try searching our database.

Can I make my collection "data pageable"?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rob Meade - 17 Aug 2007 09:19 GMT
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
ca8msm@aspnetlibrary.com - 17 Aug 2007 10:23 GMT
> Hi all,
>
[quoted text clipped - 13 lines]
>
> 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/articledetails.aspx?article=Add-paging-to-a-repeater

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.