DataGrid.CommitEdit Method ()
Invokes the CommitEditCommand command for the cell or row currently in edit mode.
Assembly: PresentationFramework (in PresentationFramework.dll)
If a cell is currently being edited, this method commits any pending changes to the cell without committing any pending changes to the row. This means that changes are propagated from the cell editing control to the pending row. If a cell is not currently being edited, all pending row edits are committed.
Available since 4.0
Available since 3.0