SelEndCol, SelStartCol, SelEndRow, SelStartRow Properties

       

Return or set the first or last row or column for a range of cells. Not available at design time.

Syntax

object.SelEndCol [= value ]

object.SelStartCol [= value]

object.SelEndRow [= value]

object.SelStartRow [= value]

The SelEndCol, SelStartCol, SelEndRow, and SelStartRow property syntaxes have these parts:

Part Description
Object An object expression that evaluates to an object in the Applies To list.
Value A numeric expression specifying the first or last column or row.

Remarks

You can use these properties to select a specific region of a DataGrid control from code or to return in code the dimensions of an area that the user selects.

SelStartCol and SelStartRow together specify the cell in the upper-left corner of a selected range. SelEndCol and SelEndRow specify the cell in the lower-right corner of a selected range.

To specify a cell without moving the current selection, use the Col and Row properties.

The default value for SelStartCol and SelEndCol is -1.