ComponentOne VSFlexGrid 8.0
Row Property

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

Syntax

[form!]VSFlexGrid.Row[ = 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 Row property may be set to -1 to hide the selection, to a value between zero and FixedRows - 1 to select a cell in a fixed row, or to a value between FixedRows and Rows - 1 to select a cell in a scrollable row. Setting Row 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