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:
list.Remove(item);
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.
Any ideas?
Thanks!
Imported from legacy forums. Posted by lumbus (had 2114 views)