ComponentOne VSFlexGrid 8.0
Flags Property

Gets or sets flags that affect the behavior of the control.

Syntax

[form!]VSFlexGrid.Flags[ = ControlFlagsSettings ]

Remarks

The settings for the Flags property are described below:

 

Constant

Value

Description

flexCFNone

0

No flags

flexCFV7SelectionEvents

1

Selection events (BeforeSelChange, AfterSelChange) are fired only when the Row/Col parameters refer to valid coordinates.

flexCFAutoClipboard

2

Causes the control to handle clipboard keys automatically

Copy:  Ctrl+C, Ctrl+Ins

Cut:  Ctrl+X, Shift+Del (if editable)

Paste:  Ctrl+V, Shift+Ins (if editable)

Delete:  Del (if editable)

flexCFNoEditIndent

4

Causes the edit control to use the old behavior: align to the left, no indent.

flexCFBindToBinaryFields

8

Causes the grid to show binary fields when it is bound to a data source.

 

By default, VSFlexGrid fires selection change events whenever the selection changes, even when the cell coordinates are invalid (e.g., the selection was removed by setting Row = -1, or the old row was removed with Rows = 1).

If you set fg.Flags = flexCFV7SelectionEvents, then the control will fire selection events (BeforeSelChange, AfterSelChange) only when the Row/Col parameters refer to valid coordinates. (This is the same behavior as in VSFlexGrid version 7.)

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback