ComponentOne VSFlexGrid 8.0
ShowComboButton Property

Returns or sets whether drop-down buttons are shown when editable cells are selected.

Syntax

[form!]VSFlexGrid.ShowComboButton[ = ShowButtonSettings ]

Remarks

The ShowComboButton property allows you to set whether drop-down buttons are shown when editable cells are selected. To use the ShowComboButton property the cell must have values listed in an associated ComboList.

The settings for the ShowComboButton property are described below:

 

Constant

Value

Description

flexSBEditing

0

The user may initiate the drop-down button by typing into the current cell or by double-clicking it with the mouse

flexSBFocus

1

The user may initiate the drop-down button by clicking the current cell with the mouse.

flexSBAlways

2

The control displays drop-down buttons automatically.

 

Note that the user may edit the cells directly, by clicking the button with the mouse when the Editable property is set to flexEDKbdMouse. If the Editable property is set to flexEDNone, then the cell contents cannot be edited by the user.

 

The following code prepares the grid to show a button for the combo list as soon as a cell is selected:

       With fg

        .Editable = flexEDKbdMouse

        .ComboList = "Item 1|Item 2|Item 3"

        .ShowComboButton = flexSBFocus

    End With

 

Data Type

ShowButtonSettings (Enumeration)

Default Value

flexSBFocus

 

 


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

Product Support Forum  |  Documentation Feedback