Home Forums WinForms controls Xceed Grid for WinForms Reset/refresh datasource

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #14207 |

    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)

    User (Old forums)
    Member
    Post count: 23064

    Anyone?

    Thanks.

    Imported from legacy forums. Posted by lumbus (had 2931 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.