BrightIdeasSoftware.ObjectListView.CancelCellEdit C# (CSharp) Method

CancelCellEdit() public method

Stop editing a cell and throw away any changes.
public CancelCellEdit ( ) : void
return void
        public virtual void CancelCellEdit()
        {
            if (!this.IsCellEditing)
                return;

            // Let the world know that the user has cancelled the edit operation
            this.cellEditEventArgs.Cancel = true;
            this.cellEditEventArgs.NewValue = this.GetControlValue(this.cellEditor);
            this.OnCellEditFinishing(this.cellEditEventArgs);

            // Now cleanup the editing process
            this.CleanupCellEdit(false);
        }
ObjectListView