Invalidates the specified column.
[Visual Basic]
Overloads Public Sub RefreshCol( _
ByVal col As Integer _
)
[C#]
public void RefreshCol(
int col
);
[Delphi]
public procedure RefreshCol(
col: Int32
); overload;
Parameters
col
The split column index to repaint.
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 First column formatted by the OwnerDrawCell event:
Me.C1TrueDBGrid1.Splits(0).DisplayColumns("First").OwnerDraw = False
Me.C1TrueDBGrid1.RefreshCol(1)
· C#
this.c1TrueDBGrid1.Splits[0].DisplayColumns["First"].OwnerDraw = false;
this.c1TrueDBGrid1.RefreshCol(1);
· Delphi
Self.C1TrueDBGrid1.Splits[0].DisplayColumns['First'].OwnerDraw := False;
Self.C1TrueDBGrid1.RefreshCol(1);
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. |