Sign in Join
FPDoc Onlineexperiment

TDBRadioGroup.UpdateRadioButtonStates procedure

Member of TDBRadioGroupprotectedIn unit DBCtrls

Updates the linked dataset to reflect the current radio button selected in the control.

Declaration

pascal
procedure UpdateRadioButtonStates; override

Description

UpdateRadioButtonStates is an overridden method in TDBRadioGroup used to update the linked dataset for the data-aware control when the value in ItemIndex has been changed.

UpdateRadioButtonStates ensures that the Value for the radio button in ItemIndex is applied to the linked dataset when it can be modified. The Edit and Modified methods in DataLink are called to place the linked dataset in an edit state. Value is updated to apply the new content to the field in the linked dataset.

If the dataset cannot be modified, the DataChange method is called directly to update the control. Value is changed to 'X' character to indicate that the linked dataset could not be modified.

See also

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