Object Reference > True DBGrid Events > AfterColEdit Event |
AfterColEdit Event
The AfterColEdit event occurs after editing is completed in a grid cell.
TDBGrid_AfterColEdit (ByVal ColIndex As Integer)
Arguments
ColIndex is an integer that identifies the column that was edited.
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, and data from the cell is moved to the grid's copy buffer. The AfterColEdit event immediately follows the AfterColUpdate event.
When editing is completed in a grid cell, this event is always triggered, even if no changes were made to the cell or the BeforeColUpdate event was canceled.
The AfterColEdit event will not be fired if the BeforeColEdit event is canceled.