DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Lars Netzel Guest

    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



  2. #2
    David Rothgery Guest

    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




  3. #3
    Lars Netzel Guest

    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
    >
    >
    >




Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


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


Sponsored Links