Hi joedotnot,
Here are the answers to your questions:
1. The DataGridView control supports the standard Windows Forms data binding model, so it will bind to instances of classes described in the following list:
· Any class that implements the IList interface, including one-dimensional arrays.
· Any class that implements the IListSource interface, such as the DataTable and DataSet classes.
· Any class that implements the IBindingList interface, such as the BindingList<(Of <(T>)>) class.
· Any class that implements the IBindingListView interface, such as the BindingSource class.
IList doesn’t implement any of the interfaces described above, that’s the reason that your DataGridView doesn’t display anything.
Here’s an document describes DataGridView’s required interfaces
DataGridView Control Overview (Windows Forms)
Here’s an document describes interfaces implemented by IList
IList(T) Generic Interface (System.Collections.Generic)
2. Another approach is
Code Snippet
myDataGridView.DataSource = CustomersIList.ToList();
The ToList() method returns the internal objects in a List object, the List class implements IList interface.
Best regards,
Jacob