Object Reference > True DBGrid Events > ColEdit Event |
ColEdit Event
The ColEdit event occurs when a cell first enters edit mode by typing a character.
TDBGrid_ColEdit (ByVal ColIndex As Integer)
Arguments
ColIndex is an integer that identifies the column being edited.
If a floating editor marquee is not in use, this event also occurs when the user clicks the current cell or double clicks another cell.
The ColEdit event immediately follows the BeforeColEdit event only when the latter is not canceled.
When the user completes editing within a grid cell, as when tabbing to another column in the same row, pressing the Enter key, or clicking on another cell, the BeforeColUpdate and AfterColUpdate events are executed if the data has been changed. The AfterColEdit event is then fired to indicate that editing is completed.