So far A have created the object class module and a way to input the data which consists of different types. after the object has been created it is stored in a list these objects then can be written to an XML file or read from. The problem I am having now is displaying the data on the Form.
Asked
Active
Viewed 28 times
1 Answers
1
So basically the fact that it's read from an XML file is irrelevant.. what you really want to know is how to display objects from a collection on a WinForm, right? There are different ways. The easiest is probably this:
- Place a
DataGridView
on your form - in code, do this:
myDataGridView.DataSource = myList; //where myList is your List<T>

Matt
- 6,787
- 11
- 65
- 112