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.
Unfortunately, activation email could not send to your email. Please try again.

GridControl Serialization fails with custom type

Thread ID:

Created:

Updated:

Platform:

Replies:

103522 May 9,2012 07:05 AM May 25,2012 09:44 AM WPF 1
loading
Tags: GridControl
Carina Romero
Asked On May 9, 2012 07:05 AM

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.



Rajasekar G [Syncfusion]
Replied On May 25, 2012 09:44 AM

 

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


CONFIRMATION

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.

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.

;