Home › Forums › WinForms controls › Xceed Grid for WinForms › Reset/refresh datasource
I have a GridControl that uses an ArrayList as datasource. I need to be able to remove a row from the grid and remove the corresponding item in the ArrayList.
DataRows.Remove(row) does not work, because the grid can’t delete row from an ArrayList. So I tried removing the item from this list first:
Then I try to refresh the datagrid:grid.DataSource = list;
That fails with an ArgumentOutOfRangeException. I’ve tried first setting the the DataSource to null, I’ve tried clearing the grid and adding everything back in, but nothing seems to work.
Imported from legacy forums. Posted by lumbus (had 2114 views)
Imported from legacy forums. Posted by lumbus (had 2931 views)