Object Reference > True DBGrid Events > AfterColUpdate Event |
AfterColUpdate Event
The AfterColUpdate event occurs after data is moved from a cell to the grid's internal copy buffer.
TDBGrid_AfterColUpdate (ByVal ColIndex As Integer)
Arguments
ColIndex is an integer that identifies the column that was updated.
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 event is executed, and unless canceled, data from the cell is moved to the grid's copy buffer. Once moved, the AfterColUpdate event is executed.
The AfterColUpdate event occurs after the BeforeColUpdate event, and only if the Cancel argument in the BeforeColUpdate event is not set to True.
Once the AfterColUpdate event procedure begins, the cell data has already been moved to the grid's copy buffer and can't be canceled, but other updates can occur before the data is committed to the Recordset.