KeyDownEdit Event

Fired when the user presses a key in cell-editing mode.

Syntax

Private Sub VSFlexGrid_KeyDownEdit( ByVal Row As Long,  ByVal Col As Long, KeyCode As Integer,  ByVal Shift As Integer)

Remarks

This event is similar to the standard KeyDown event, except it is fired while the grid is in edit mode.

The editor has three modes: text, drop-down combo, or drop-down list. The mode used is determined by the ComboList and ColComboList properties.

While editing with the text editor or with a drop-down combo, you may set or retrieve the contents of the editor using the EditText property. You may manipulate the contents of the editor using the EditSelStart, EditSelLength, and EditSelText properties.

While editing with drop-down lists or drop-down combos, you may set or retrieve the contents of the editor using the ComboItem, ComboIndex, ComboCount, and ComboData properties.

See Also

VSFlexGrid Control