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

RadioGroupItemCollection.GetItemByValue(Object) Method

Gets a radio group item by its value.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public RadioGroupItem GetItemByValue(
    object value
)

#Parameters

Name Type Description
value Object

The value to search.

#Returns

Type Description
RadioGroupItem

The RadioGroupItem object with the value specified.

#Remarks

The method returns a RadioGroupItem from the RepositoryItemRadioGroup.Items collection according to its value.

The item’s value can be obtained via the RadioGroupItem.Value property. Note: for the editor to function correctly, items in the collection must be unique objects. If both the value parameter and the RadioGroupItem.Value field are null, the method returns the item.

If there is no match between the value parameter and any item’s RadioGroupItem.Value field, null is returned.

The RadioGroupItemCollection.GetItemIndexByValue method returns the item’s position within the collection according to the item’s value.

See Also