Home All Groups Group Topic Archive Search About

DataGrid and ArrayList

Author
29 Dec 2006 1:56 PM
Jarsinio
Hi,

In my aplication I have an ArrayList thay hold many instances of a
class. ( The bussiness layer return to the UI layer an ArrayList)
I want to know how Can I fill the DataGrid with the arraylist ?


Thanks
Alan

Author
1 Jan 2007 3:10 AM
Ken Tucker [MVP]
Hi,

        You can set the datagrid's data source to the arraylist.  Any
properties in the class stored in the arraylist will be shown in the
datagrid. Here is a link to an example

http://vb-tips.com/downloads/arraylisttodatagrid.zip

Ken
----------------------------------
Show quoteHide quote
"Jarsinio" <alanga***@gmail.com> wrote in message
news:1167400596.453348.126360@79g2000cws.googlegroups.com...
> Hi,
>
> In my aplication I have an ArrayList thay hold many instances of a
> class. ( The bussiness layer return to the UI layer an ArrayList)
> I want to know how Can I fill the DataGrid with the arraylist ?
>
>
> Thanks
> Alan
>