Help Center

SelectionModeproperty

Returns or sets a value that determines whether an MSHFlexGrid should allow regular cell selection, selection by rows, or selection by columns.

Windowspropertydoc-orphan
No implementation located. This member is documented, but the source scan found no matching declaration. It is likely declared in a header this scan does not resolve, or provided by a macro.

Syntax

PROPERTY SelectionMode () AS SelectionModeSettings
PROPERTY SelectionMode (BYVAL selMode AS SelectionModeSettings)

Parameters

NameDescription
selModeOne of the constants listed below.

Description

Returns or sets a value that determines whether an MSHFlexGrid should allow regular cell selection, selection by rows, or selection by columns.

Remarks

The color of the selection is determined by the BackColorSel and ForeColorSel properties.

Even if ByRow is enabled, the grid still tracks a specific "active" cell using the Row and Col properties, though the entire row appears highlighted to the user.

Example

' Enable full-row selection for record-based views grid.SelectionMode = flexSelectionByRow

' Ensure the selection is always visible grid.Highlight = flexHighlightAlways

Reference