/// <summary> /// Raises the LostFocus event /// </summary> /// <param name="e">A CellFocusEventArgs that contains the event data</param> public override void OnLostFocus(CellFocusEventArgs e) { base.OnLostFocus(e); // get the table to redraw the cell e.Table.Invalidate(e.CellRect); }
/// <summary> /// Raises the LostFocus event /// </summary> /// <param name="e">A CellFocusEventArgs that contains the event data</param> public virtual void OnLostFocus(CellFocusEventArgs e) { this.Bounds = e.CellRect; if (e.Cell == null) { this.Padding = CellPadding.Empty; } else { this.Padding = e.Cell.Padding; } e.Table.Invalidate(e.CellRect); }