Completed
Last Updated: 11 Oct 2023 08:02 by ADMIN
Release 6.3.0
Jamison
Created on: 17 Aug 2023 12:44
Category: DataGrid
Type: Bug Report
1
DataGrid: [WinUI] Pressing enter key when cell is in edit mode calls infinitely CommitEdit Execute method

When cell is in edit mode, pressings enter key calls infinitely CommitEdit Execute method in custom scenario. 

1. When new item is added to the DataGrid source, the cell goes in edit mode

2. Pressing enter key executes additional logic and CommitEdit Execute method calls infinitely.

Workaround:

 Inside the CommitEdit CanExecure method, call the default can execute logic

public override bool CanExecute(object parameter)
    {
        return this.Owner.CommandService.CanExecuteDefaultCommand(DataGridCommandId.CommitEdit, parameter);
        //return true;
    }

0 comments