Data.DB.TDataSet.AfterOpen

From RAD Studio API Documentation
Jump to: navigation, search

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

Delphi

property AfterOpen: TDataSetNotifyEvent read FAfterOpen write FAfterOpen;

C++

__property TDataSetNotifyEvent AfterOpen = {read=FAfterOpen, write=FAfterOpen};

Description

Occurs after an application completes opening a dataset and before any data access occurs.

Write an AfterOpen event handler to take specific action immediately after an application opens the dataset. AfterOpen is called after the dataset establishes access to its data and the dataset is put into dsBrowse state. For example, an AfterOpen event handler might check an ini file to determine the last record touched in the dataset the previous time the application ran, and position the dataset at that record.

AfterOpen is an event handler of type Data.DB.TDataSetNotifyEvent.

See Also

Code Examples