The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Hi,
What is the effect of calling SuspendBinding on a GDBG?
Am I correct in saying it doesnt stop the grid responding to ListChangedEvents fired by the datasource and fetching the data into it''s internal storage?
Does it just stop the grid from repainting rows/cells which have been updated via the ListChangedEvent?
What effect does SuspendBinding have if parent rows or child rows are added to the datasource?
Thanks
Chris
ADAdministrator 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.