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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Clearing a GGC

Thread ID:





17764 Aug 16,2004 03:48 PM UTC Aug 16,2004 04:10 PM UTC WinForms 1
Tags: GridControl
Sean Greer
Asked On August 16, 2004 03:48 PM UTC

I have a GGC whose DataSource is initially set to a DataView. Depending on the action of the user, I need to set DataSource to null and clear the grid. Setting to null, no problem, but how do you get the GGC to clear its state? I''ve tried ggc.Refresh() and ggc.TableModel.ResetVolatileData() to no avail. Should it be this hard? Sean

Administrator [Syncfusion]
Replied On August 16, 2004 04:10 PM UTC

You can try code like: ggc.DataSource = null; ggc.DataMember = null; ggc.ResetTableDescriptor(); ggc.DataSource = newDataTable; ggc.TableDescriptor.SetItemProperties(ggc.Engine.GetSouceList()); ggc.Table.TableDirty = True; ggc.Table.SummariesDirty = True; ggc.Refresh(); We did find a problem and correct it in the next release when you try to reset a datasource. With this correction, the above code should work. For the version you have, if it does not, then you can dispose and recreate the ggc control after reloading the data.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon