B
bern11
I'm trying to bind a DataGridView to a BindingList that is a member of
the main form. It worked once, then stopped. Now it does not display
data when the list is clearly populated. I just get an empty grid.
There seems to be several ways to bind the grid, none of which seem to work:
1) I can set the DataSource to MainFormBingingSource and DataMember to
dataList,
-or-
2) I can set DataSource to MainFormBindingSource, then under it appears
an expansion where I can directly select dataList.
(MainForm is the form and dataList is the BindingList).
It works like a champ if I set DataSource = dataList in the form
constructor, but then I have to programmatically format it, uhggg!
So, what am I doing wrong? Why no data? Is there a 'Refresh Grid Data'
function?
the main form. It worked once, then stopped. Now it does not display
data when the list is clearly populated. I just get an empty grid.
There seems to be several ways to bind the grid, none of which seem to work:
1) I can set the DataSource to MainFormBingingSource and DataMember to
dataList,
-or-
2) I can set DataSource to MainFormBindingSource, then under it appears
an expansion where I can directly select dataList.
(MainForm is the form and dataList is the BindingList).
It works like a champ if I set DataSource = dataList in the form
constructor, but then I have to programmatically format it, uhggg!
So, what am I doing wrong? Why no data? Is there a 'Refresh Grid Data'
function?