SelectionMode

This property returns and sets a value that determines whether a Grid control enables regular cell selection, selection by rows, or selection by columns.

Syntax

object.SelectionMode [= number]

Parameters

object
Object expression that evaluates to a Grid control.
number
Integer or constant that specifies the selection mode. The following table shows the settings for number.
Constant
Value
Description
flexSelectionFree 0 Free. Enables selections to be made spreadsheet-style.
flexSelectionByRow 1 By row. Forces selections to span entire rows, as in a multicolumn list-box or record-based display.
flexSelectionByColumn 2 By column. Forces selections to span entire columns, as if selecting ranges for a chart or fields for sorting.