Binding to current ValidationErrors

Grids for WPF Forum

Posted 16 years ago by JDEV
Version: 4.5.0470
Do you have an example of how to bind to the current errors in the PropertyGrid?

We want to list the current error messages in a text box outside of the property grid.

Using the Validation.Error event we can populate our text block but do not have a way to clear the text block when the errors have been rectified.


Comments (2)

Posted 16 years ago by Actipro Software Support - Cleveland, OH, USA
The Error event should be fired when validation errors have been corrected also. But I imagine you need a way to clear only the item that has been corrected, and leave the remaining items in the TextBox.

We have updated the Data Validation QuickStart for the next maintenance release, so that it shows how you can collect the current validation errors and report them.

Basically, it walks down the visual tree, starting from the PropertyGrid, and aggregates the Validation.Errors collections. This same concept can be applied to any WPF control which has child controls.

Actipro Software Support

Posted 16 years ago by JDEV
Thanks. The new QuickStart works solves this.

[Modified at 10/07/2008 07:44 AM]
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.