AD
Administrator
Syncfusion Team
December 16, 2005 06:18 PM UTC
SuspendBinding has no effect on childtables as the GriddataBoundGrid does not listen to any childtable events.
There are gerally two cases of how SuspendBinding works depending upon UseListChangedEvent. If you want to try a different behavior flip the value of this property. The default is true from the designer code. In both cases the grid gets the ListChanged events and simply ignores in some manner (does not try to repaint the cells etc).
1) UseListChangedEvent = true;
In this case when resume binding is called, the grid raises a ListChanged.Reset event which resets the grid and its data (as if it were sorted).
2) UseListChangedEvent = false;
In this case as the events are raised, a Flag is maintained tracking the kinds of actions that are taking place (but the grid is not redrawing at this point). Then when ResumeBinding takes place, this flag is queried and the queued actions occur.
You can see this in the \Essential Suite\Windows\Grid.Windows\Src\Extensions\DataBound\GridModelDataBinder.cs code.