SelectionMode Property

Returns or sets whether the control will select cells in a free range, by row, by column, or like a listbox.

Syntax

Public Property SelectionMode As SelectionMode

Applies To

Grid Object

Data Type

Enumerated

The following settings are available:

Constant Value Description
Free 0(Default) Select freely.
ByRow 1 Select by row.
ByColumn 2 Select by column.
ListBox 3 Similar to flexSelectionByRow, but allows non-continuous selections. CTRL-clicking with the mouse toggles the selection for an individual row. Dragging the mouse over a group of rows toggles their selected state.