Returns or sets a value that determines whether an MSHFlexGrid should allow regular cell selection, selection by rows, or selection by columns.
Syntax
object.SelectionMode [=value]
The SelectionMode property syntax has these parts:
Part | Description |
object | An object expression that evaluates to an object in the Applies To list. |
value | An integer or constant that specifies the selection mode, as described in Settings. |
Settings
The settings for value are:
Constant | Value | Description |
flexSelectionFree | 0 | Free. This allows individual cells in the MSHFlexGrid to be selected, spreadsheet style. This is the default. |
flexSelectionByRow | 1 | By Row. This forces selections to span entire rows, as in a multi-column list box or record-based display. |
flexSelectionByColumn | 2 | By Column. This forces selections to span entire columns, as if selecting ranges for a chart or fields for sorting. |