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=2.0.5.1, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89 is not marked as serializable.