KeyPressEdit Event

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

Syntax

Public Event KeyPressEdit(ByVal Row As Long, ByVal Col As Long, ByRef KeyAscii As Integer)

Applies To

Grid Object

Parameters

The following parameters are available:

Parameter Description
Row Row number of cell.
Col Column number of cell.
KeyAscii An integer that returns a standard numeric ANSI keycode.

Remarks

This event is similar to the standard KeyPress 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

KeyDownEdit Event, ChangeEdit Event, KeyUpEdit Event