Edge
4.5
4.5.2
Available
Calling xref:System.Windows.Controls.DataGrid.CommitEdit from one of the xref:System.Windows.Controls.DataGrid?displayProperty=name's xref:System.Windows.Controls.DataGrid.CellEditEnding?displayProperty=name event handlers causes the xref:System.Windows.Controls.DataGrid?displayProperty=name to lose focus.
- Quirked
- Build-time break
This bug has been fixed in the .NET Framework 4.5.2, so it can be avoided by upgrading the .NET Framework. Alternatively, it can be avoided by explicitly re-selecting the xref:System.Windows.Controls.DataGrid?displayProperty=name after calling xref:System.Windows.Controls.DataGrid.CommitEdit?displayProperty=name.
M:System.Windows.Controls.DataGrid.CommitEdit
M:System.Windows.Controls.DataGrid.CommitEdit(System.Windows.Controls.DataGridEditingUnit,System.Boolean)
Windows Presentation Foundation (WPF)