internal void CancelEdit() { Debug.Assert(IsEditing, "Should not call CancelEdit when IsEditing is false."); DataGridColumn column = Column; if (column != null) { // Ask the column to restore the original value column.CancelEdit(Content as FrameworkElement); } IsEditing = false; }