I have 3 different datagridviews all bound to a separate bindingsource. I would like to update the datagridviews when new data is loaded into the bindingsources. I have tried the generally accepted method for solving this problem here:
1.) Create a Binding Source
2.) Set the Datasource for this object to your Dataset Table.
3.) Set The datasource for your DatagridView as the Binding source Object.
bindingsrc.DataSource = newDataTable;
// The two lines below were supposedly a dirty solution to refreshing the grid.
dg1.DataSource = null;
dg1.DataSource = bindingsrc;
However it doesn't work. I have also tried to reset the bindings for each bindingsource:
bindingsrc.ResetBindings();
but to no avail. I know I am getting the correct new data, because once I step into the code when debugging, newDataTable has the correct new data. So it is a matter of the datagridview not refreshing. In case this might be relevant, my datagridviews are part of a panel whose parent is a splitcontainer. I have also tried to refresh the parent:
this.dataGridView.Parent.Refresh()
without any results.