Divelements Community
Customer discussion of all Divelements products

ArgumentException in _grid.Rows.Clear();

Latest post 11-08-2007 12:27 by Tim Dawson. 2 replies.
  • 09-23-2007 18:33

    Confused [8-)] ArgumentException in _grid.Rows.Clear();

    Sometimes during refresh operation I get ArgumentException exception with following call stack.

    at Divelements.SandGrid.SandGrid.set_FocusedElement(FocusableGridElement value)
    at Divelements.SandGrid.InnerGrid.A(GridElement , FocusableGridElement )
    at Divelements.SandGrid.InnerGrid.B(GridElement )
    at Divelements.SandGrid.GridElement.A(InnerGrid )
    at Divelements.SandGrid.GridRow.A(InnerGrid )
    at Divelements.SandGrid.GridRowCollection.OnClear()
    at System.Collections.CollectionBase.Clear()
    at Divelements.SandGrid.GridRowCollection.Clear()

    I do nothing special, just plain Rows.Clear() method call.
  • 09-23-2007 23:47 In reply to

    Surprise [:O] Re: ArgumentException in _grid.Rows.Clear();

    Some research showed that this exception happens in following situation:

    a) There are two SandGrid controls placed in a form.
    b) SandGrid control (A) has OnSelectionChanged event assigned.
    c) In this event content of SandGrid control (B) is refreshed (Rows.Clear() + Rows.AddRange()).
    d) Exception happens when user collapses tree branch that contains selected row.
  • 11-08-2007 12:27 In reply to

    Re: ArgumentException in _grid.Rows.Clear();

    This is a bug that has now been fixed - thanks.
Page 1 of 1 (3 items) | RSS
Copyright © 2008 Divelements Limited
Powered by Community Server (Commercial Edition), by Telligent Systems