DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2

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




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