void table_CellPropertyChanged(object sender, XPTable.Events.CellEventArgs e) { if (e.EventType != CellEventType.ValueChanged) { return; } if (Changed != null) { Changed(this, e); } UpdateIconAndInfo(e.Row); }
/// <summary> /// Raises the CellPropertyChanged event /// </summary> /// <param name="e">A CellEventArgs that contains the event data</param> internal void OnCellPropertyChanged(CellEventArgs e) { if (this.Table != null) { this.Table.OnCellPropertyChanged(e); } }
/// <summary> /// Raises the CellPropertyChanged event /// </summary> /// <param name="e">A CellEventArgs that contains the event data</param> internal void OnCellPropertyChanged(CellEventArgs e) { if (this.TableModel != null) { this.TableModel.OnCellPropertyChanged(e); if (e.EventType == CellEventType.WordWrapChanged) { UpdateWordWrapProperties(e.Cell); } } }
/// <summary> /// Handler for a Cells PropertyChanged event /// </summary> /// <param name="sender">The object that raised the event</param> /// <param name="e">A CellEventArgs that contains the event data</param> private void cell_PropertyChanged(object sender, CellEventArgs e) { this.OnCellPropertyChanged(e); }
/// <summary> /// Raises the CellPropertyChanged event /// </summary> /// <param name="e">A CellEventArgs that contains the event data</param> protected internal virtual void OnCellPropertyChanged(CellEventArgs e) { if (this.CanRaiseEvents) { this.InvalidateCell(e.Row, e.Column); if (CellPropertyChanged != null) { CellPropertyChanged(this, e); } if (e.EventType == CellEventType.CheckStateChanged) { this.OnCellCheckChanged(new CellCheckBoxEventArgs(e.Cell, e.Column, e.Row)); } } }
/// <summary> /// Raises the PropertyChanged event /// </summary> /// <param name="e">A CellEventArgs that contains the event data</param> protected virtual void OnPropertyChanged(CellEventArgs e) { e.SetColumn(this.Index); if (this.Row != null) { e.SetRow(this.Row.Index); } if (this.CanRaiseEvents) { if (this.Row != null) { this.Row.OnCellPropertyChanged(e); } if (PropertyChanged != null) { PropertyChanged(this, e); } } }