TDBListBox.DataChange procedure
Implements the event handler signalled when data in the linked dataset has been changed.
Declaration
procedure DataChange(Sender: TObject); overrideArguments
Sender | Object for the event notification. |
Description
DataChange is an overridden procedure in
TDBListBox. It
implements the abstract virtual method defined in the ancestor class, and
updates
ItemIndex to reflect the current value in the linked dataset (when
available).
When DataField is an empty string, the value in ItemIndex is set
to -1 to indicate that no item is selected in the control. Otherwise,
the field value in the linked dataset is located in Items and its
ordinal position is used in ItemIndex.
DataChange is used as the OnDataChange event handler in the TFieldDataLink instance for the control.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
