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

Serializing GridGroupingControl.TableDescriptor

Thread ID:





13859 May 12,2004 01:23 PM UTC May 13,2004 06:54 AM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On May 12, 2004 01:23 PM UTC

Is it possible to serialize the GridTableDescriptor object? I would like to persist the order of my columns, column names, grouping, which columns are currently being displayed, etc. This would allow my users to create their own custom "views" and save them across sessions. I tried the following, but it appears the GridTableDescriptor is not marked as serializable. Are there any other approaches I can take? GridTableDescriptor descriptor = gridGroupingControl1.TableDescriptor; Stream s = new FileStream( viewName, FileMode.Create, FileAccess.ReadWrite ); BinaryFormatter b = new BinaryFormatter(); b.Serialize(s, descriptor); s.Close(); Exception received: An unhandled exception of type ''System.Runtime.Serialization.SerializationException'' occurred in mscorlib.dll Additional information: The type Syncfusion.Windows.Forms.Grid.Grouping.GridTableDescriptor in Assembly Syncfusion.Grid.Grouping, Version=, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89 is not marked as serializable.

Administrator [Syncfusion]
Replied On May 13, 2004 06:54 AM UTC

Try using gridGroupingControl1.WriteXmlSchema to do this serialization. This will write changes that were made to the TableDescriptor including column order if columns were modified from default populated columns.


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

Live Chat Icon For mobile
Live Chat Icon