Skip to main content
.NET 8.0+

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

SingleChoiceAction.SelectedIndex Property

Specifies the index of the selected item in a Single Choice Action’s ChoiceActionBase.Items list.

Namespace: DevExpress.ExpressApp.Actions

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

[Browsable(false)]
public int SelectedIndex { get; set; }

#Property Value

Type Description
Int32

An integer value representing an index of the Single Choice Action’s currently selected item.

#Remarks

Use this property to specify the index of Single Choice Action’s item which is displayed as a selected item in a UI. Manual changing of this property value raises the SingleChoiceAction.SelectedItemChanged event. However, when an end-user changes this value by selecting an item in the Action’s control, the SingleChoiceAction.Execute event is raised.

If none of the Single Choice Action’s items is selected, this property returns -1.

See Also