Event for Item value change

Grids for WPF Forum

Posted 15 years ago by Anurodh Ora
Version: 4.5.0486
Avatar
Hi,

We have custom editors in PropertyGrid (like Combobox) binding through the coding.

Now, I want to know that if user changes any value then is there any event fires
by which I can validate the the input values (changed value in case of combo box).

Or should I have to explictly attach events for each custom editor when they are being created.

Any pointer in this issue.


Thanks

Anurodh

Comments (1)

Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
You would need to attach to the ComboBox event, but you can do so on the PropertyGrid (or any level above the PropertyGrid in the VisualTree). If the ComboBox is editable, then you attached to the TextBox.TextChanged routed event, otherwise you'd attached to the ComboBox.SelectionChanged event.

You might want to consider encapsulating this functionality in a UserControl. You can build a custom property editor that leverages your UserControl. This will generally make things cleaner and easier to maintain.


Actipro Software Support

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

Add Comment

Please log in to a validated account to post comments.