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

How to Reset GGC to initial state?

Thread ID:





40381 Feb 1,2006 10:43 PM UTC Feb 2,2006 07:11 AM UTC WinForms 1
Tags: Grouping
Heath Brand
Asked On February 1, 2006 10:43 PM UTC

Hi, I''m having trouble resetting a GGC to a "like new" state. There appears to be some attribute settings left behind after I''ve restored a GGC schema using ApplyXmlSchema(). Is there a method on the GGC that resets the grid to a "new" state? There are a multitude of "Reset..." methods on the GGC, but I''m looking for one that does it all. thanks, Heath

stanleyj [Syncfusion]
Replied On February 2, 2006 07:11 AM UTC

Hi Heath, Please refer the sample in \Syncfusion\Essential Studio\\windows\Grid.Grouping.Windows\Samples\CategoryView\ folder. With some changes, ApplyXmlSchema can be applied to reset the schema. public Form1() { bool testReadWriteXmlSchema = true; if (testReadWriteXmlSchema) { stream = new System.IO.MemoryStream(); this.gridGroupingControl1.WriteXmlSchema(new XmlTextWriter(stream, null)); } } System.IO.MemoryStream stream; The idea is to initially get the schema in a MemoryStream and then apply it. Add a button handler. private void button1_Click(object sender, System.EventArgs e) { System.IO.MemoryStream stream2 = new System.IO.MemoryStream(stream.ToArray()); this.gridGroupingControl1.ApplyXmlSchema(new XmlTextReader(stream2)); } Best regards, Stanley


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

or the page will be automatically redirected to 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