Gets or sets the column position of the current cell in the current split.
[Visual Basic]
Public Property Col As Integer
[C#]
public int Col {get;set;}
[Delphi]
public property Col: Int32 read get_Col write set_Col;
Remarks
If the column is visible, the caret or marquee will be moved to the selected column. If the column is not visible, the grid will scroll to make it visible as a result of setting this property.
Setting the Col property at run time does not affect selected columns.
Example
The following code uses the Col property to change the column position of the current cell to column 3 so when you run the application the caret or marquee will be moved to column 3:
Me.C1TrueDBGrid1.Col = 3
· C#
this.c1TrueDBGrid1.Col = 3;
· Delphi
Self.C1TrueDBGrid1.Col := 3;
See Also
C1TrueDBGrid Class | C1TrueDBGrid Members | C1.Win.C1TrueDBGrid Namespace
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |