Skip to main content

RadioGroup.Text Property

Gets or sets the text label associated with a radio group editor.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v22.2.dll

NuGet Package: DevExpress.Win.Navigation


public override string Text { get; set; }

Property Value

Type Description

A String value representing the text label associated with a radio group editor.


This property overrides the BaseEdit.Text property. Actually, the property returns the string representation of the selected item’s RadioGroupItem.Value property. The RadioGroup.SelectedIndex property specifies the index of the selected item within the RepositoryItemRadioGroup.Items collection.

Setting the Text property is not in effect. To change this property value, you can modify the BaseEdit.EditValue property inherited by the RadioGroup editor. In this case, the selection switches to the item with the matching RadioGroupItem.Value field. If there are no matches, the selection is cleared.

Note: to ensure proper functionality of the editor, items in the RepositoryItemRadioGroup.Items collection must be unique objects. Otherwise, if the assigned BaseEdit.EditValue property matches the RadioGroupItem.Value property of the several items, the selection switches to the first such item in the collection.

See Also