BrightIdeasSoftware.ObjectListView.CellEditor_Validating C# (CSharp) Method

CellEditor_Validating() protected method

Called when the cell editor could be about to lose focus. Time to commit the change
protected CellEditor_Validating ( object sender, CancelEventArgs e ) : void
sender object
e CancelEventArgs
return void
        protected virtual void CellEditor_Validating(object sender, CancelEventArgs e)
        {
            this.cellEditEventArgs.Cancel = false;
            this.cellEditEventArgs.NewValue = this.GetControlValue(this.cellEditor);
            this.OnCellEditorValidating(this.cellEditEventArgs);

            if (this.cellEditEventArgs.Cancel) {
                this.cellEditEventArgs.Control.Select();
                e.Cancel = true;
            } else
                FinishCellEdit();
        }
ObjectListView