Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

SingleChoiceAction.Execute Event

Occurs when an end-user clicks the required item located in the Single Choice Action’s item list.

Namespace: DevExpress.ExpressApp.Actions

Assembly: DevExpress.ExpressApp.v19.2.dll

Declaration

public event SingleChoiceActionExecuteEventHandler Execute

Event Data

The Execute event's data class is SingleChoiceActionExecuteEventArgs. The following properties provide information specific to this event:

Property Description
Action Provides access to the Action being executed. Inherited from ActionBaseEventArgs.
CurrentObject Provides access to the current object represented by the currently displayed View. Inherited from SimpleActionExecuteEventArgs.
SelectedChoiceActionItem Provides access to a Single Choice Action’s selected item.
SelectedObjects Provides access to the objects selected in the currently invoked View. Inherited from SimpleActionExecuteEventArgs.
ShowViewParameters Provides access to the ShowViewParameters object, specifying a View, displayed after executing the current Action. Inherited from ActionBaseEventArgs.

Remarks

Handle this event to execute custom code when an end-user clicks an item located in the current Single Choice Action’s item list (see ChoiceActionBase.Items). To access this item, use the handler’s SingleChoiceActionExecuteEventArgs.SelectedChoiceActionItem parameter. If you need an additional View to be displayed after executing the Action, use the ActionBaseEventArgs.ShowViewParameters parameter to specify this View and its settings.

For additional information, refer to the How to: Access Objects Selected in the Current View help topic.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Execute event.

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.

See Also