[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'DB' (#fcl)


Event triggered after the dataset is put in insert mode.


Source position: db.pas line 1751

public property TDataSet.AfterInsert : TDataSetNotifyEvent
  read FAfterInsert
  write FAfterInsert;


AfterInsert is triggered after the dataset has finished putting the dataset in dsInsert state and it has initialized the new record buffer. This event can be used e.g. to set initial field values. After the Afterinsert event, the TDataset.AfterScroll event is still triggered. Raising an exception in the AfterInsert event, will prevent the AfterScroll event from being triggered, but does not undo the insert or append operation.

See also



Event triggered before the dataset is put in insert mode.



Event triggered after the cursor has changed position.



Append a new record to the data



Insert a new record at the current position.

Documentation generated on: May 14 2021