A newer version of this page is available. Switch to the current version.

RadioGroupItem.Value Property

Gets or sets the value associated with the current item.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v19.2.dll

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.

See Also