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,
I have a GGC bound to a DataTable. And the DataTable is refreshed with new data periodically by a background thread. So whenever the DataTable is updated the GGC is also updated. Also, when the DataTable is updated, I create a new DataTable of the data that is visible in the GGC (the filtered records). My question is, is there a way to lock the GGC so that it''s data does not change while I build the DataTable of filtered records?
P.S. Thank you for the great support. I have posted on here several times, and your support team has been very helpful.
Heath
ADAdministrator Syncfusion Team February 25, 2006 04:26 PM UTC
Heath,
you can set the following two properties before changing the data:
groupingGrid.Table.TableDirty = true;
groupingGrid.Table.SummariesDirty = true;
TableDirty = true indicates to the engine that it needs to recategorize elements and refresh counters and summaries the next time it is painted or the the next you want to access a record or summary information.
In the bindingList_ListChanged event handler the engine checks for the TableDirty flag. If it is set to true the ListChanged event will be ignored.
Only once you refresh the grid or try to access its elements the data will be categorized.
We also recently found a performance issue with 4.1.0.50 with regards to the ListChangedType.ItemChanged event where our handler was unnecesarily making changes to tree structures that were not needed. We will have that fixed 4.1.0.58 and later versions. Just thought that might also be related to your problem (but with above properties set that code will not get hit anymore anyway ...).
Stefan
>Hi,
>
>I have a GGC bound to a DataTable. And the DataTable is refreshed with new data periodically by a background thread. So whenever the DataTable is updated the GGC is also updated. Also, when the DataTable is updated, I create a new DataTable of the data that is visible in the GGC (the filtered records). My question is, is there a way to lock the GGC so that it''s data does not change while I build the DataTable of filtered records?
>
>P.S. Thank you for the great support. I have posted on here several times, and your support team has been very helpful.
>
>Heath
>