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