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

# TDBRadioGroup.ItemIndex

Ordinal position for the selected radio button in the group.

## Declaration

Source position: dbctrls.pp line 598

`public property TDBRadioGroup.ItemIndex : Integer;`

## Description

ItemIndex is an Integer property with the ordinal position for the selected radio button in the group. The default value for the property is -1, and indicates that no radio button is selected for the group. Changing the value for the property causes the widgetset control to be updated when its Handle has been assigned.

ItemIndex must be in the range -1..Items.Count-1. An Exception is raised with the message in rsIndexOutOfBounds if ItemIndex is set to a value less than -1 or greater than or equal to the number Items for the control.

ItemIndex is a public property in TDBRadioGroup.

Remark: | Some widgetsets do not allow a radio button group to have an unselected item index. To provide cross-platform compatibility, a hidden radio button is created for this purpose. When ItemIndex is set to -1, it actually selects the hidden radio button.

## See also

TCustomRadioGroup.ItemIndex |  | The ordinal position in Items for the selected radio button in the group.