AllowSelection Property

Returns or sets whether the user can select ranges of cells with the mouse and keyboard.

Syntax

[form!]VSFlexGrid.AllowSelection[ = {True | False} ]

Remarks

Set this property to False to prevent users from extending the selection by clicking and dragging or using the SHIFT plus cursor keys. In this case, clicking and dragging the mouse will move the current cell, but will not extend the selection.

This capability is useful when using the VSFlexGrid control to implement certain user interface elements such as menus, property sheets, or explorer-style trees.

Data Type

Boolean

Default Value

True

See Also

VSFlexGrid Control