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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Way to lock GGC data temporarily?

Thread ID:

Created:

Updated:

Platform:

Replies:

41226 Feb 24,2006 10:43 PM UTC Feb 25,2006 04:26 PM UTC WinForms 1
loading
Tags: Grouping
Heath Brand
Asked On February 24, 2006 10:43 PM UTC

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

Administrator [Syncfusion]
Replied On 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 >

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;