Array As Datasource of DataGrid


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Array As Datasource of DataGrid

Hybrid View

  1. #1
    Arun Guest

    Array As Datasource of DataGrid


    Is it possible to have an Array or an ArrayList as the datasource of a datagrid
    in Windows Forms?
    I tried doing so and found that the datagrid displays the lengths of the
    Array items.
    Is there an alternative to using a DataTable or a Dataset as the Datagrid's
    datasource

  2. #2
    Bill McCarthy Guest

    Re: Array As Datasource of DataGrid

    Hi Arun,

    You can use a strongly typed collection, that is a collection class that
    implements at least IList, and has a default Item property that returns a
    particular type of class whose public property members will be displayed in
    the datagrid.




    "Arun" <arun999@yahoo.com> wrote in message news:3c8da839$1@10.1.10.29...
    >
    > Is it possible to have an Array or an ArrayList as the datasource of a

    datagrid
    > in Windows Forms?
    > I tried doing so and found that the datagrid displays the lengths of the
    > Array items.
    > Is there an alternative to using a DataTable or a Dataset as the Datagrid's
    > datasource




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