How do I initialize a Web Grouping Grid through an xml schema file?
You can save the schema of a grid, which includes all the information within the TableDescriptor, BaseStyles, Appearance, ChildGroupOptions, NestedTableGroupOptions, TableOptions and TopLevelGroupOptions properties, during design time by invoking the "Save Schema..." verb.
You can then load the file created in the above step with the code below:
C#
// If the schema file is right below the application root dir.
this.GridGroupingControl1.ReadXmlSchema(new StringReader(new StreamReader(Page.MapPath("gridSchema.xml")).ReadToEnd()));
VB
' If the schema file is right below the application root dir.
Me.GridGroupingControl1.ReadXmlSchema(New StringReader(New StreamReader(Page.MapPath("gridSchema.xml")).ReadToEnd()))
Note that the above schema file could have been created using our Windows Grouping Grid control. In other words, you can use a single schema file to initialize both our Windows and Web grouping grid controls.