C
cody
What do I have to do if I want to Databind an IEnumerable to a Datagrid?
I have a datagridtablestyle in the datagrid but I don't know what the
MappingName should be. For the DatagridBoolColumns I've set the mappingnames
to the properties of the class which the IEnumerable class yields.
myDataGrid.DataSource = myEnumerable;
myDataGrid.Refresh();
If I open the Form the grid is still empty. Additionally GetEnumerator() of
my class is not called.
I have a datagridtablestyle in the datagrid but I don't know what the
MappingName should be. For the DatagridBoolColumns I've set the mappingnames
to the properties of the class which the IEnumerable class yields.
myDataGrid.DataSource = myEnumerable;
myDataGrid.Refresh();
If I open the Form the grid is still empty. Additionally GetEnumerator() of
my class is not called.