Now when clicking outside of the rows and outside of the DataGrid control, the commit edit command is not executed. You have to click on the rows to execute the command.
Provide an option to execute the command when clicking outside of the rows, also outside of the DataGrid control.
For now you can execute the CommitEdit command on external UI:
private void TapGestureRecognizer_Tapped(object sender, TappedEventArgs e)
{
this.dataGrid.CommandService.ExecuteCommand(DataGridCommandId.CommitEdit, new EditContext(null, ActionTrigger.Programmatic, null));
}