About these DataGrid Paging thingies!


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: About these DataGrid Paging thingies!

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




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


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center