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

TDBCheckBox.DataChange

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

Declaration

Source position: dbctrls.pp line 668

protected procedure TDBCheckBox.DataChange(

  Sender: TObject

);

Arguments

Sender

  

Object for the event notification.

Description

DataChange is used to perform actions needed when the linked dataset for the control has been changed. In TDBCheckBox, this requires setting the State property for the control. DataChange calls the GetFieldCheckState method to get the value for the State property.

DataChange is assigned as the OnDataChange event handler in the internal TFieldDataLink instance.