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

GridControl Serialization fails with custom type

Hi,

We need to associate additional data with some grid cells. We therefore created a custom serializable class to hold the additional data for a cell and assigned the instance to GridStyleInfo.CellValue2. We then serialized the Grid to an xml file which worked fine (the xml file looked OK (it had xsi:type information with the class name of our custom class and the class data).

But deserialization fails (it works if we don't assign any CustomClass instances to CellValue2). Do we need to register the custom class for deserialization in a particular way? We tried to play around with XmlInclude (e.g. [XmlInclude(typeof(MyCustomClass))]) but without success.

Is this not possible? We can not use the grid without this feature.

Thank you for your help.



1 Reply

RG Rajasekar G Syncfusion Team May 25, 2012 01:44 PM UTC

 

Hi Carina,

 

Thank you for your update.

 

Please find the requested sample in the below location,

 

Sample location: 103522.zip

 

Please let us know if you have any questions.

 

Thanks,

Raja sekar.G


Loader.
Live Chat Icon For mobile
Up arrow icon