BrightIdeasSoftware.ObjectListView.FinishCellEdit C# (CSharp) Method

FinishCellEdit() public method

Finish the cell edit operation, writing changed data back to the model object
This method does not trigger a Validating event, so it always finishes the cell edit.
public FinishCellEdit ( bool expectingCellEdit ) : void
expectingCellEdit bool True if it is likely that another cell is going to be /// edited immediately after this cell finishes editing
return void
        public virtual void FinishCellEdit(bool expectingCellEdit)
        {
            if (!this.IsCellEditing)
                return;

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

            // If someone doesn't cancel the editing process, write the value back into the model
            if (!this.cellEditEventArgs.Cancel) {
                this.cellEditEventArgs.Column.PutValue(this.cellEditEventArgs.RowObject, this.cellEditEventArgs.NewValue);
                this.RefreshItem(this.cellEditEventArgs.ListViewItem);
            }

            this.CleanupCellEdit(expectingCellEdit);
        }

Same methods

ObjectListView::FinishCellEdit ( ) : void
ObjectListView