I have Winforms DataGridView whose DataSource Rids is Marc sample
TableListCollection<TRowderived from BindingList.
It is used to edit invoice rows.
If user presses Revert button, my application reads original rows from
server database:
List<TRowtr;
tr = q.Where(r =r.Dokumnr == Dok.Dokumnr)
.OrderBy(r =r.Reanr).ToList();
Rids = new TableListCollection<TRow>(Grid.RowTable, tr);
Rids.ResetBindings();
However DataGridView still shows old rows.
I tried to re-assign DataGridView DataSource
DataSource = Rids;
but this causes DataGridView to lost all settings
How to refresh DataGridView after its BindingList is re-loaded from DataBase
?
Andrus