-
About these DataGrid Paging thingies!
Error Message:
"AllowCustomPaging must be true and VirtualItemCount must be set for a
DataGrid with ID DataGrid1 when AllowPaging is set to true and the selected
datasource does not implement ICollection."
My DataGrid is named DataGrid1 and I use a datasource of the SQLdataReader
type... I dont' get what the problem is, please help! What's ICOLLECTION?
In every article I read everything seems so simple... I don't get what I
have done wrong!
thanx
/Lars Netzel
-
Re: About these DataGrid Paging thingies!
"Lars Netzel" <lars.netzel@ehandel.sigma.se> wrote in message
news:3d00a8e4@10.1.10.29...
> Error Message:
>
> "AllowCustomPaging must be true and VirtualItemCount must be set for a
> DataGrid with ID DataGrid1 when AllowPaging is set to true and the
selected
> datasource does not implement ICollection."
>
> My DataGrid is named DataGrid1 and I use a datasource of the SQLdataReader
> type...
> I dont' get what the problem is, please help! What's ICOLLECTION?
ICollection is an interface that provides the several methods that the
DataGrid uses behind the scenes for paging.
A DataSet (or a DataTable) implements ICollection, but a DataReader doesn't.
--
Dave Rothgery
drothgery@alum.wpi.edu
-
Re: About these DataGrid Paging thingies!
Thank you, that was it... everything feels new in .NET
/Lars
"David Rothgery" <drothgery@alum.wpi.edu> wrote in message
news:3d00c782$1@10.1.10.29...
>
> "Lars Netzel" <lars.netzel@ehandel.sigma.se> wrote in message
> news:3d00a8e4@10.1.10.29...
> > Error Message:
> >
> > "AllowCustomPaging must be true and VirtualItemCount must be set for a
> > DataGrid with ID DataGrid1 when AllowPaging is set to true and the
> selected
> > datasource does not implement ICollection."
> >
> > My DataGrid is named DataGrid1 and I use a datasource of the
SQLdataReader
> > type...
>
> > I dont' get what the problem is, please help! What's ICOLLECTION?
>
> ICollection is an interface that provides the several methods that the
> DataGrid uses behind the scenes for paging.
>
> A DataSet (or a DataTable) implements ICollection, but a DataReader
doesn't.
>
>
> --
> Dave Rothgery
> drothgery@alum.wpi.edu
>
>
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks