dotnet / dotnet/wpf

Datagrid, OnExecutedCommitEdit sometimes has parameter DataGridEditingUnit.Cell and DataGridEditingUnit.Row

Open
#9,714 1 comment 0 reactions 0 assignees View on GitHub
:mailbox_with_no_mail: waiting-author-feedback
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

### 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

1) on a datagrid with row and cell validation rules
2) edit a cell in the row and then move to another cell in that row
3) see that the row validation rules are not executed

4) edit a cell in a row and then move to another cell in a different row
5) 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.