BeforeEdit Event

Fired before the control enters cell edit mode.

Syntax

Public Event BeforeEdit As CellCancelEventHandler

Applies To

Grid Object

Parameters

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.

Remarks

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.

Examples


See Also

AfterEdit Event , CellValueChanged Event