Skip to content

TDataSet.BeforeScroll

Event triggered before the cursor changes position.

Declaration

Source position: db.pas line 1986

public property BeforeScroll: TDataSetNotifyEvent;

Description

BeforeScroll is triggered before the cursor changes position. This can happen with one of the navigation methods: TDataset.Next, TDataset.Prior, TDataset.First, TDataset.Last, but also with two of the editing operations:TDataset.Insert and TDataset.Delete. Raising an exception in this event handler aborts the operation in progress.

See also

Name Description
TDataset.AfterScroll Event triggered after the cursor has changed position.
TDataset.Next Go to the next record in the dataset.
TDataset.Prior Go to the previous record.
TDataset.First Position the dataset on the first record.
TDataset.Last Navigate forward to the last record.
TDataset.Insert Insert a new record at the current position.
TDataset.Delete Delete the current record.