I want to achieve a pretty simple task, but none of the solutions here on SO or otherwise found have helped me so far:
I have a WPF DataGrid
, which is b
Why dont you catch the attached bubbling routed event Validation.Error
on your data grid?
Make sure you have NotifyOnValidationError=true
in your bindings. This way you would know that error has been raised and show that in your messagebox.
But do you really "know" there are errors on the datagrid? I mean do you see the errors highlighted using red border , tooltips, row validation error template etc? Isnt that sufficient to indicate to user?
Cant you use
Validation.GetHasError(mydataGrid)
to check if its in error?