[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'DBCtrls' (#lcl)

TDBGroupBox.DataChange

Updates the value for the control when the linked dataset is changed.

Declaration

Source position: dbctrls.pp line 1104

protected procedure TDBGroupBox.DataChange(

  Sender: TObject

);

Arguments

Sender

  

Object for the event notification.

Description

DataChange is a procedure used to update the value displayed for the control when its linked dataset has been changed.

DataChange is used as the OnDataChange event handler in the internal TFieldDataLink instance used in the class. It is called after navigating to a different record in the linked dataset, or when the value for the DataField has been changed in program code.

DataChange uses the Field definition (when assigned) to get the value for the Caption in the control. When the Field has not been assigned, the Caption is set to an empty string ('').

See also

TDBGroupBox.Caption

  

Text displayed as the caption for the control.

TDBGroupBox.DataField

  

Contains the name of the field with the value for the control.

TDBGroupBox.DataSource

  

Provides access to the dataset with content for the control.

TDBGroupBox.Field

  

The Field to which the datalink is attached.

TFieldDataLink

  

Maintains an association between a control, an action, and a field in a linked dataset.


Version 4.0 Generated 2025-05-03 Home