Property Change

Grids for WPF Forum

Posted 14 years ago by Eli Obadia
Version: 10.2.0533
I need to do a simple action -set a Global Boolean variable: Changed to true- if any of the properties has been changed. How can I detect that? I try with the Notiofy event, but it didn't work. Do I need to add in every property set method that varibale to true? (If I have 50 properties I'll have the same instructiopn 50 times!)


Comments (1)

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

You can property use the PropertyGrid.PropertyChanged event to set your flag, but this is only fired when the underlying property is changed through the PropertyGrid. If you access the value directly, then it will not fire. Additionally, this fires for any sub-properties (i.e. children of expandable properties), which may or may not be what you want. But the IPropertyDataAccessor of the changed property is included in the event arguments, so you can probably filter out events you don't want.

Actipro Software Support

The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.