Propertygrid not updating

by  |  27-Jun-2019 19:27

So is there a way to get the Property Grid to refresh from Property Changed events?

I have a Winform application which uses colour to highlight certain things.

Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.

Hi, I am experiencing a strange behaviour when using WPF property grid in a small test application.

I've tried implementing INotify Property Changed in my class but the property grid does not actually show the new propertyies of the object in the background until I click on it.

I've tried subscribing to the Property Changed event of my object directly, and calling the Refresh() method of the Property Grid when it is envoked. Meaning changing one property may evoke multiple Property Changed events.

So, I added a "reset" button to my form, which set the colour properties of my object back to the defaults.

Community Discussion