BeforeEdit Event

Fired before the control enters cell edit mode.


Public Event BeforeEdit As CellCancelEventHandler

Applies To

Grid Object


The following parameters are available:

Parameter Description
Row Row of cell going into edit mode.
Col Column of cell going into edit mode.
Cancel Allows you to cancel the editing operation.


This event is fired before the control enters edit mode. It allows you to prevent editing by setting the Cancel parameter to True.

In this event, you can use EditSelStart property and EditSelLength property to set the insertion point, establishing an insertion range or selecting substrings in the editor.


See Also

AfterEdit Event , CellValueChanged Event