Invalidates the current column.
[Visual Basic]
Overloads Public Sub RefreshCol()
[C#]
public void RefreshCol()
[Delphi]
public procedure RefreshCol(); overload;
Remarks
The RefreshCol method causes a repaint of the entire column in the grid. Normally, the grid repaints automatically as needed. However, if handlers have been written for the OwnerDrawCell event, use this method to force a column to be repainted and hence cause the appropriate events to fire.
Example
The following code uses the RefreshCol method to repaint the current column:
Me.C1TrueDBGrid1.Splits(0).DisplayColumns("First").OwnerDraw = False
Me.C1TrueDBGrid1.RefreshCol()
· C#
this.c1TrueDBGrid1.Splits[0].DisplayColumns["First"].OwnerDraw = false;
this.c1TrueDBGrid1.RefreshCol();
· Delphi
Self.C1TrueDBGrid1.Splits[0].DisplayColumns['First'].OwnerDraw := False;
Self.C1TrueDBGrid1.RefreshCol;
See Also
C1TrueDBGrid Class | C1TrueDBGrid Members | C1.Win.C1TrueDBGrid Namespace | C1TrueDBGrid.RefreshCol Overload List
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |