ComboCloseUp Event

Fired before the built-in combobox closes up.

Syntax

Private Sub VSFlexGrid_ComboCloseUp (Row As Long, Col As Long, FinishEdit As Boolean)

Remarks

The parameters for the ComboCloseUp event are described below:

Row As Long

Col As Long

FinishEdit As Boolean

The ComboCloseUp event fires when the user closes the drop-down part of the cell editor, either by clicking an item or by clicking the drop-down button while the drop down portion of the control is visible.

By default, closing the drop-down does not close the editor. The editor remains active, and the user can make further selections with the mouse of keyboard.

The FinishEdit parameter in the ComboCloseUp event allows users to override that behavior. By setting this parameter to True, the editor will close and the grid will exit edit mode when the drop-down closes.

For example:

Private Sub VSFlexGrid1_ComboCloseUp(ByVal Row As Long, ByVal Col As Long,

FinishEdit As Boolean)

    ' finish editing after user selects an item from the drop-down

    ' (without this, the grid would remain in edit mode)

    FinishEdit = True

End Sub

 

See Also

VSFlexGrid Control