BrightIdeasSoftware.ObjectListView.PossibleFinishCellEditing C# (CSharp) Method

PossibleFinishCellEditing() public method

If a cell edit is in progress, finish the edit.
This method does not guarantee that the editing will finish. The validation process can cause the finishing to be aborted. Developers should check the return value or use IsCellEditing property after calling this method to see if the user is still editing a cell.
public PossibleFinishCellEditing ( bool expectingCellEdit ) : bool
expectingCellEdit bool True if it is likely that another cell is going to be /// edited immediately after this cell finishes editing
return bool
        public virtual bool PossibleFinishCellEditing(bool expectingCellEdit)
        {
            if (!this.IsCellEditing)
                return true;

            this.cellEditEventArgs.Cancel = false;
            this.cellEditEventArgs.NewValue = this.GetControlValue(this.cellEditor);
            this.OnCellEditorValidating(this.cellEditEventArgs);

            if (this.cellEditEventArgs.Cancel)
                return false;

            this.FinishCellEdit(expectingCellEdit);

            return true;
        }

Same methods

ObjectListView::PossibleFinishCellEditing ( ) : bool
ObjectListView