ST
stanleyj
Syncfusion Team
February 2, 2006 07:11 AM UTC
Hi Heath,
Please refer the sample in \Syncfusion\Essential Studio\4.1.0.50\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