Object Reference > True DBGrid Events > AfterDelete Event |
AfterDelete Event
The AfterDelete event occurs after the user deletes a selected record from the grid.
TDBGrid_AfterDelete ( )
Arguments
None
When the user selects a record selector in the grid and presses Del or Ctrl+X, the BeforeDelete event is executed, and unless canceled, the row is deleted. Once the row is deleted, the AfterDelete event is executed.
While the AfterDelete event procedure is executing, the bookmark of the deleted row is available in the collection provided by the SelBookmarks property.
The AfterDelete event cannot be canceled. It is fired in both bound and unbound modes.