Search code examples
c#user-interfacedatagriddatasourcedotnetbar

How to update SuperGrid after changing dataSource


In SuperGridControl from DevComponents how can I update GUI after e.g. adding new row to the data source (List<MyCustomObject>). I'm sure this element is added (counter is increasing) but no changes are visible.

I'm trying

superGrid.PrimaryGrid.InvalidateLayout();
superGrid.PrimaryGrid.InvalidateRender();
superGrid.Refresh();
superGrid.Invalidate();
superGrid.Update();

but it doesn't work


Solution

  • Use BindingList<> instead of List<> solved this problem