KeyDownEdit Event

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

Syntax

Public Event KeyDownEdit(ByVal Row As Long, ByVal Col As Long, ByRef KeyCode As Integer, ByRef Shift As Integer)

Applies To

Grid Object

Parameters

The following parameters are available:

Parameter Description
Row Row number of cell.
Col Column number of cell.
KeyCode Indicates the physical key pressed.
Shift Indicates the state of the SHIFT, CTRL, and ALT keys.

Remarks

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

While editing with a editor, 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.

See Also

KeyPressEdit Event, ChangeEdit Event, KeyUpEdit Event