ComponentOne VSFlexGrid 8.0
Col Property

Returns or sets the zero-based index of the current column.

Syntax

[form!]VSFlexGrid.Col[ = value As Long ]

Remarks

Use the Row and Col properties to make a cell current or to find out which row or column contains the current cell.  Columns and rows are numbered from zero, beginning at the top for rows and at the left for columns.

The Col property may be set to -1 to hide the selection, to a value between zero and FixedCols - 1 to select a cell in a fixed column, or to a value between FixedCols and Cols - 1 to select a cell in a scrollable column. Setting Col to other values will trigger an Invalid Index error.

Setting the Row and Col properties automatically resets RowSel and ColSel, so the selection becomes the current cell. Therefore, to specify a block selection, you must set Row and Col first, then set RowSel and ColSel. Alternatively, you may use the Select method to do it all with a single statement.

Setting the Row and Col properties does not ensure that the current cell is visible. To do that, use the ShowCell method.

Note that the Row and Col properties are not the same as the Rows  and Cols properties.

Data Type

Long

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback