HighLight Property

Returns or sets whether selected cells will be highlighted.

Syntax

[form!]VSFlexGrid.HighLight[ = ShowSelSettings ]

Remarks

The settings for the HighLight property are described below:

 

Constant

Value

Description

FlexHighlightNever

0

Never highlight the selected range. Selected Ranges will not be visible to the user.

FlexHighlightAlways

1

Always highlight the selected range.

FlexHighlightWithFocus

2

Highlight the selected range only when the Control has the focus.

 

Highlighting ranges that contain merged cells may lead to non-rectangular shapes being highlighted. If this is undesirable, you may disable the highlighting by setting HighLight to flexHighlightNever.

You may also prevent extended selections of any kind by setting the AllowSelection property to False.

Data Type

ShowSelSettings (Enumeration)

Default Value

flexHighlightAlways (1)

See Also

VSFlexGrid Control