expressappframework-devexpress-dot-expressapp-dot-actions-dot-singlechoiceactionexecuteeventargs.md
Provides access to a Single Choice Action’s selected item.
Namespace : DevExpress.ExpressApp.Actions
Assembly : DevExpress.ExpressApp.v25.2.dll
NuGet Package : DevExpress.ExpressApp
public ChoiceActionItem SelectedChoiceActionItem { get; }
Public ReadOnly Property SelectedChoiceActionItem As ChoiceActionItem
| Type | Description |
|---|---|
| ChoiceActionItem |
A ChoiceActionItem object that represents the Single Choice Action’s selected item.
|
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
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
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