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

TDBRadioGroup.UpdateRadioButtonStates

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

Declaration

Source position: dbctrls.pp line 586

protected procedure TDBRadioGroup.UpdateRadioButtonStates; override;

Description

UpdateRadioButtonStates is an overridden method in TDBRadioGroup used to update the 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

TDBRadioGroup.Value

  

The value for the selected radio button in the control.

TDBRadioGroup.DataLink

  

Provides access to properties, methods, and events for the data-aware control.

TFieldDataLink.Modified

  

Updates the class when the linked dataset enters an edit state.

TFieldDataLink.Edit

  

Edit - if the field can be modified, performs inherited Edit and shows editing status.

TCustomRadioGroup.UpdateRadioButtonStates

  

UpdateRadioButtonStates including any pending changes.


Version 3.2 Generated 2024-02-25 Home