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

deserialize XML file to two propertygrid

Thread ID:





124025 May 10,2016 07:39 AM UTC May 17,2016 05:58 AM UTC WPF 3
Tags: PropertyGrid
Mers Tho
Asked On May 10, 2016 07:39 AM UTC

Hi, I have two PropertyGrid, one display normalMode, another one display stepMode. Both of the mode are stored in a class named Configuration. I use Configuration class to serialize and deserialize into XML file, my problem is that I cannot serialize the values and I cannot deserialize the values as well. Can anyone help to solve it?

And also, I found that if the class level goes to third level, there comes to a problem of serialize and displaying.

For example :

-Class A
--Class B
---Class C

It is not a problem to display the value of class B in propertyGrid, but when it goes to class C, the column of Name, Age, and Gender display nothing. Serialize and deserialize function would not function as well.

The attachment below is my sample..

Thanks in Advance.

Attachment: WpfApplication2_9eec8b5f.zip

Venkateshwaran Ramdoss [Syncfusion]
Replied On May 11, 2016 12:29 PM UTC

Hi Tho Jun Xiong ,

We have analyzed your sample which you provided in your previous update. In this "NormalMode" and "StepMode" instance was not set to "configuration". So, the file does not get serialized. We have modified the sample by adding below code example in button click event.

configuration.normal_mode = normalMode;
configuration.step_mode = stepMode;

Now, the file get serialized and saved in xml file. Please download the sample from the below link. You can also check the third level by modifying this sample.

Sample: WpfApplication2  

Venkateshwaran V.R.

Mers Tho
Replied On May 16, 2016 06:40 AM UTC

Thank you so much! It works well for me. 

Venkateshwaran Ramdoss [Syncfusion]
Replied On May 17, 2016 05:58 AM UTC

Hi Tho Jun Xiong,

We are glad that your problem has been resolved. Please let us know if you need any other assistance.

Venkateshwaran V.R.


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