Col, Row Properties

       

Return or set the active cell in a DataGrid control. Not available at design time.

Syntax

object.Col [= number]

object.Row [= number]

The Col and Row property syntaxes have these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
number The number of the column or row containing the active cell.

Remarks

Use these properties to specify a cell in a DataGrid control or to find out which column or row contains the active cell in a selected region. Columns and rows are numbered from zero, beginning at the top for rows and at the left for columns. Setting these properties at run time doesn't change which cells are selected. Use the SelEndCol, SelStartCol, SelEndRow, and SelStartRow properties to specify a selected region.

Note   The Col and Row properties aren't the same as the Cols and Rows properties.