Refreshing changes in properties

Grids for WPF Forum

Posted 9 years ago by Eli Obadia
Avatar
I'm changing programatically the value of a string property, however the change is not reflected unless I call Refresh of the PropertyGrid, is that the best way, I'm thinking maybe Refresh is refreshing the whole propertygrid which will be very inefficient, is this the best way?

Thanks!,
Eli

Comments (1)

Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Eli,

Typically, the underlying object would implement INotifyPropertyChanged, and then fire the PropertyChanged event for the associated property. The PropertyGrid (and WPF bindings) know to listen to this event and will update dynamically.

If the underlying property is a DependencyProperty, then you get the change notification for free.


Actipro Software Support

The latest build of this product (v2019.1 build 0682) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.