1
Answer

Populating a datagrid with an ArrayList

shazadali

shazadali

21y
2.3k
1
Does anyone have any code snippets on how to populate a Datagrid from either an Array or ArrayList of objects that I have created, and also change the column header text and width to what you want. All the examples I've seen so far concentrate on Databinding to a Dataset. I just need a simple way of adding my ArrayList of objects in a grid an viewing some of the properties of my objects within that ArrayList. Would I need to convert it into XML to make this easier, and if so how? Cheers.
Answers (1)