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

RadioGroupItem.Value Property

Gets or sets the value associated with the current item.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DXCategory("Data")]
public virtual object Value { get; set; }

#Property Value

Type Description
Object

An object representing the value associated with the current item.

#Remarks

The Value property specifies an object associated with the current item. When an item is selected in the radio group, its value is assigned to the edit value of the control.

To move the selection within the radio group editor programmatically, you can modify the Value property. The action can also be performed by modifying the RadioGroup.SelectedIndex property. When the supplied Value does not belong to any item within the collection, the selection is cleared.

To ensure correct functioning of an editor, the values of items in the collection must be unique.

Items represent objects of the RadioGroupItem class. All items are stored in the RepositoryItemRadioGroup.Items collection and can be accessed via the RadioGroupItemCollection.Item property.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Value property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also