Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RadioGroup.Text Property

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

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[Bindable(false)]
[Browsable(false)]
public override string Text { get; set; }

#Property Value

Type Description
String

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

#Remarks

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