DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Fri, 17 Aug 2007 09:19:52 +0100,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    Rob Meade
          2    unknown


Can I make my collection "data pageable"?   
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
Date:Fri, 17 Aug 2007 09:19:52 +0100   Author:  

Re: Can I make my collection "data pageable"?   
On 17 Aug, 09:19, "Rob Meade"  wrote:

> 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/articledetails.aspx?article=Add-paging-to-a-repeater
Date:Fri, 17 Aug 2007 09:23:12 -0000   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us