DataGridTemplateColumn shows red border for row level validation errors #9513
-
Hi,
but it still showing red box. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Here is an example.
the data grid:
|
Beta Was this translation helpful? Give feedback.
-
WpfTemplateColumnErrorTest.zip |
Beta Was this translation helpful? Give feedback.
-
That is almost works, but oddly enough if I have in the template some bindings it shows the issue again.
If you comment button with Tag and binding and uncomment button without one it works, but with binding it shows red border again. |
Beta Was this translation helpful? Give feedback.
Right, you need to be distinguishing between errors of the cell and errors of the buttons. If there is no binding on the button, it has no errors, but the cell still does. You can see that easier if you give it some space: