wpf
wpf copied to clipboard
Datagrid, OnExecutedCommitEdit sometimes has parameter DataGridEditingUnit.Cell and DataGridEditingUnit.Row
Description
When editing a cell and then switching to another cell in the same row, OnExecutedCommitEdit fires with parameter DataGridEditingUnit.Cell. When editing a cell and then switching to another row, OnExecutedCommitEdit fires with parameter DataGridEditingUnit.Row. This causes the row validation rules not to fire, but I want the row validation rule to fire now.
Reproduction Steps
-
on a datagrid with row and cell validation rules
-
edit a cell in the row and then move to another cell in that row
-
see that the row validation rules are not executed
-
edit a cell in a row and then move to another cell in a different row
-
see that the row validation rules are executed
Expected behavior
only the cell validation rule is executed, the row validation rule is not executed when moving through cells in the same row.
Actual behavior
I want the ability for the row validation rules to be executed when moving through cells in the same row.
Regression?
No response
Known Workarounds
There are none. I cannot edit OnExecutedCommitEdit's parameter to always be DataGridEditingUnit.Row.
Impact
I am working on the VS Resource Explorer and this is the root of a known bug. Please reach out if further information is needed.
Configuration
No response
Other information
No response