We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Way to lock GGC data temporarily?

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

1 Reply

AD Administrator 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 >

Loader.
Live Chat Icon For mobile
Up arrow icon