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

# TDBRadioGroup.Value

The value for the selected radio button in the control.

## Declaration

Source position: dbctrls.pp line 599

`public property TDBRadioGroup.Value : string read FValue write SetValue;`

## Description

Value is a String property which contains the text for the radio button at ItemIndex in the control. It is given the string value from the Values property stored at the position in ItemIndex. It may contain an 'X' character when the linked dataset has not been assigned, or when Values does not have a string stored at the requested position.

Assigning a new string to Value causes the Values property to be searched to locate the radio button with the specified content. ItemIndex is updated with the new position for the radio button, which initiates a call to UpdateRadioButtonStates to update the linked dataset and refresh the control. The Change method is called to signal the OnChange event handler (when assigned).

## See also

TDBRadioGroup.Items |  | Contains the string values used as captions for radio buttons in the grouped data-aware control.
TDBRadioGroup.ItemIndex |  | Ordinal position for the selected radio button in the group.
TDBRadioGroup.Values |  | The values of the strings in Items.
TDBRadioGroup.Change |  | Signals the OnChange event handler when assigned.
TDBRadioGroup.OnChange |  | Event Handler signalled when the Value for the control is changed.
TDBRadioGroup.UpdateRadioButtonStates |  | Updates the linked dataset to reflect the current radio button selected in the control.