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

keep all of the grid grouping settings when update datasource

Thread ID:





82742 Jun 19,2009 08:57 PM UTC Jun 23,2009 06:21 AM UTC WinForms 1
Tags: GridControl
David Cui
Asked On June 19, 2009 08:57 PM UTC


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.



Jisha Joy [Syncfusion]
Replied On 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\\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.


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.



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