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.

Value is not updated in PropertyGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

123545 Mar 28,2016 10:49 PM Apr 1,2016 04:46 AM WPF 6
loading
Tags: PropertyGrid
Mers Tho
Asked On March 28, 2016 10:49 PM

I am trying to XML serialize my updated value in propertygrid, but it keeps saving the default value that I had set, I had try using INotifyPropertyChanged, it is still not working.
Any solution for that? thank you.

Here is my code 

Attachment: WpfApplication9_26fb08bd.zip

Sugapriya Mariappan [Syncfusion]
Replied On March 29, 2016 05:48 AM

Hi Tho Jun,

Thank you for contacting Syncfusion Support.

We have checked the sample which you have provided in your last update. In that sample, you have created object for the Person class each time before using that.Due to this, the value does not get updated properly while changing at runtime. Now we have modified the sample with the same object and please download it from the below link

Sample link:WpfApplication9

Regards,
M.Sugapriya

Mers Tho
Replied On March 29, 2016 12:15 PM

Hello, thank you for answering my question again, your code is working!! However, there is another problem comes out again, which is once I click the load button to deserialize the data from XML, the data will not be able to be updated again if I click save button. Did I miss something in the Deserialize function ?

Mers Tho
Replied On March 29, 2016 12:23 PM

Once again, I would like to say thank you for helping me. I've found the problem I've just posted just now. In my Deserialize function, i added PropertyDemo.SelectedObject = obj in my code, but I solve my problem by deleting it. Thank you so much

Sugapriya Mariappan [Syncfusion]
Replied On March 30, 2016 03:24 AM

Hi Tho Jun,

Thank you for your update.

Please let us know if you need any other assistance

Regards,
M.Sugapriya

Mers Tho
Replied On March 31, 2016 04:13 AM

Hi, now I could save the data properly. but after i serialize to XML, the load button with deserialize function could not work properly.

Sugapriya Mariappan [Syncfusion]
Replied On April 1, 2016 04:46 AM

Hi Tho Jun,

Please follow up forum #123551 to get further updates about the reported query

Regards,
M.Sugapriya

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.

;