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
close icon

keep all of the grid grouping settings when update datasource


Hi,

Is there easier way to keep all of the GridGrouping control 's all settings user put during run time WHEN we reset a new instance DataTable to its datasource.

best,

David

1 Reply

JJ Jisha Joy Syncfusion Team June 23, 2009 06:21 AM UTC

Hi David,

Thank you for posting query to us.

You could save/load the schema information using XML serialization/deserialization. Please check out our sample browser sample from the below location:
..\\My Documents\syncfusion\essentialstudio\7.2.0.20\Windows\Grid.Grouping.Windows\Samples\2.0\Serialization\Employee View Xml Demo\cs

This sample demonstrates saving a data table and its theme and schema of information to individual XML files.

Features:

In the Initialize menu handler, a data set bound to the Grid Grouping control is filled from an adapter

In the Save menu handler:

Table record field styles are serialized to TableRecordFieldStylesCollection.xml

The data set is serialized to DataSet.xml

The appearance is serialized to LookAndFeel.xml

Engine schema is serialized to EngineSchema.xml

This sample shows you how to handle the QueryCellStyleInfo and look up cell-specific formatting information from a separate store

TableRecordFieldStylesCollection lets you add custom formatting to individual fields in a record that is identified by using the primary key of the record and the field name

Please let me know if this helps.

Regards,
Jisha

Loader.
Live Chat Icon For mobile
Up arrow icon