Sign in Join
FPDoc Onlineexperiment

TComponentDataLink.DataSetScrolled procedure

Member of TComponentDataLinkprotectedIn unit DBGrids

Signals the OnDataSetScrolled event handler when assigned.

Declaration

pascal
procedure DataSetScrolled(Distance: Integer); override

Arguments

Distance

Number of records for the event notification.

Description

DatasetScrolled is a procedure used to signal the OnDataSetScrolled event handler when it has been assigned in the class instance. DatasetScrolled is used in data sources or controls which change the active record for the linked Dataset. These classes can implement and assign a handler routine to perform actions specific to the control.

TCustomDBGrid provides a default implementation for the OnDataSetScrolled event handler which performs the following control-specific actions:

  • Updates scroll bar information (when needed).
  • Resets the EditorMode for the control.
  • Selects an Editor when the Active record has not been changed, and invalidates the control where the data link is used.
  • Updates the active record and invalidates the grid row when the active record has been changed.
  • Restores EditorMode to the value on entry.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.