Skip to content

TDataSet.BeforeInsert

Event triggered before the dataset is put in insert mode.

Declaration

Source position: db.pas line 1976

public property BeforeInsert: TDataSetNotifyEvent;

Description

BeforeInsert is triggered at the start of the TDataset.Append or TDataset.Insert methods. The dataset is still in dsBrowse state when this event is triggered. If an exception is raised in the BeforeInsert event handler, then the dataset will remain in dsBrowse state, and the append or insert operation is cancelled.

See also

Name Description
TDataset.AfterInsert Event triggered after the dataset is put in insert mode.
TDataset.Append Append a new record to the data.
TDataset.Insert Insert a new record at the current position.