public void EndEditMode() { if (IsCurrentCellInEditMode) { if (EditingControl != null) { CurrentCell.DetachEditingControl(); } if (IsCurrentCellInEditMode) { EndEdit(); } } }