EPUB | CHM | PDF

TDataSet.Events.AfterEdit

Top Previous Next

Occurs after an application starts editing a record.

Syntax:

property AfterEdit: TDataSetNotifyEvent;

Description:

Write an AfterEdit event handler to take specific action immediately after dataset enters edit mode. AfterEdit is called by Edit after it enables editing of a record, recalculates calculated fields, and calls the data event handler to process a record change.

Example:

This example updates the form's status bar with a message when an AfterEdit event occurs.

procedure TForm1.Table1AfterEdit(DataSet: TDataSet);
begin
   StatusBar1.SimpleText := 'Editing record';
end;