Data.DB.TDataSource.OnUpdateData

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: event
Visibility: published
Source:
Data.DB.pas
Data.DB.hpp
Unit: Data.DB
Parent: TDataSource

Delphi

property OnUpdateData: TNotifyEvent read FOnUpdateData write FOnUpdateData;

C++

__property System::Classes::TNotifyEvent OnUpdateData = {read=FOnUpdateData, write=FOnUpdateData};

Description

Occurs when the data in the current record is about to be updated.

Write an OnUpdateData event handler to take specific actions prior to posting data changes to the database. If an application posts changes to the database and an OnUpdateData event handler exists, the handler is called before the Post method of the dataset is executed. An OnUpdateData event handler might be useful for performing additional data processing or validation before posting.

See Also