I have a datagrid where I am implementing my own validation checks. When there is an error, I set the row’s border to red and display a message to the user what the error is. However, in my datagrid, there is a red exclamation point that shows up as well. I was wondering if there is a way to hide this? I tried checking the Row.HasErrors() but that always returns false and Row.ClearErrors() won’t remove the exclamation point either.
Share
Have you checked out How to: Implement Validation with the DataGrid Control?
It depends a bit on exactly where the exclamation point is showing in the DataGrid. For example, if it on the row where the validation occurs you can implement your own DataGrid.RowValidationErrorTemplate or DataGrid.ValidationErrorTemplate.
There are quite a few examples for various situations in the link.