Refreshing changes in properties

Grids for WPF Forum

Posted 14 years ago by Eli Obadia
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?


Comments (1)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
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 (v24.1.2) 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.