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.

deserialize XML file to two propertygrid

Thread ID:





124025 May 10,2016 03:39 AM May 17,2016 01:58 AM WPF 3
Tags: PropertyGrid
Mers Tho
Asked On May 10, 2016 03:39 AM

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 08:29 AM

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 02:40 AM

Thank you so much! It works well for me. 

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

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.

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.