Returns or sets a value that determines whether a Grid should allow regular cell selection, selection by rows, or selection by columns.
object.SelectionMode [= number ]
The SelectionMode property syntax has these parts:
| Part | Description |
|---|---|
| object | An object expression that evaluates to an object. |
| number | Integer or constant specifying the selection mode, as described in Settings. |
The settings for number are:
| Value | Description |
|---|---|
| 0 | Free. Allows selections to be made normally, spreadsheet-style. |
| 1 | By Row. Forces selections to span entire rows, as in a multi-column list-box or record-based display. |
| 2 | By Column. Forces selections to span entire columns, as if selecting ranges for a chart or fields for sorting. |