protected virtual void OnCellValueChange(CellEventArgs cell_args) { if (this.CellValueChange != null) { CellValueChange(this, cell_args); } }
protected virtual void OnCellEditEnd(CellEventArgs cell_args) { if (this.CellEditEnd != null) { CellEditEnd(this, cell_args); } }
protected virtual void OnCellEditStart(CellEventArgs cell_args) { if (this.CellEditStart != null) { CellEditStart(this, cell_args); } }
public virtual object this[string columnname] { get { return this.cells_values[columnname]; } set { if (!this.cells_values[columnname].Equals(value)) { CellEventArgs args = new CellEventArgs(); args.OldValue = this.cells_values[columnname]; this.cells_values[columnname] = value; args.Value = value; args.Position = new CellPosition(this, parent_collection.Parent.Columns[columnname]); OnCellValueChange(args); } } }