Back to Devexpress

SingleChoiceActionExecuteEventArgs.SelectedChoiceActionItem Property

expressappframework-devexpress-dot-expressapp-dot-actions-dot-singlechoiceactionexecuteeventargs.md

latest3.1 KB
Original Source

SingleChoiceActionExecuteEventArgs.SelectedChoiceActionItem Property

Provides access to a Single Choice Action’s selected item.

Namespace : DevExpress.ExpressApp.Actions

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public ChoiceActionItem SelectedChoiceActionItem { get; }
vb
Public ReadOnly Property SelectedChoiceActionItem As ChoiceActionItem

Property Value

TypeDescription
ChoiceActionItem

A ChoiceActionItem object that represents the Single Choice Action’s selected item.

|

Remarks

Use this property to process the currently selected value in the SingleChoiceAction.Execute event handler.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SelectedChoiceActionItem 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.

xaf-how-to-import-data-in-xaf/CS/WinWebSolution.Module/ImportDataListViewController.cs#L42

csharp
protected virtual void ImportData(SingleChoiceActionExecuteEventArgs e) {
    ChoiceActionItem activeItem = e.SelectedChoiceActionItem;
    ListView lv = (ListView)View;

xaf-how-to-import-data-in-xaf/VB/WinWebSolution.Module/ImportDataListViewController.vb#L45

vb
Protected Overridable Sub ImportData(ByVal e As SingleChoiceActionExecuteEventArgs)
    Dim activeItem As ChoiceActionItem = e.SelectedChoiceActionItem
    Dim lv As ListView = CType(View, ListView)

See Also

SingleChoiceActionExecuteEventArgs Class

SingleChoiceActionExecuteEventArgs Members

DevExpress.ExpressApp.Actions Namespace