Show: Delphi C++
From RAD Studio API Documentation
void __fastcall First();
Moves to the first record in the dataset.
Call First to make the first record in the dataset active. First posts any changes to the active record and:
- Clears the record buffers.
- Fetches the first record and makes it the active record.
- Fetches any additional records required for display, such as those needed to fill out a grid control.
- Sets the Bof property to
- Broadcasts the record change so that data controls and linked detail sets can update.
Note: The TDataSet class uses internal protected methods to reposition the active record and to fetch additional records required for display. In TDataSet, these internal methods are empty stubs. Implement these methods in derived classes to enable the First method to work.