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

GridControl Serialization fails with custom type

Thread ID:





103522 May 9,2012 11:05 AM UTC May 25,2012 01:44 PM UTC WPF 1
Tags: GridControl
Carina Romero
Asked On May 9, 2012 11:05 AM UTC


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.

Rajasekar G [Syncfusion]
Replied On 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.



Raja sekar.G


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