The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

SimpleAction.Execute Event

Occurs when an end-user clicks a Simple Action's control.

Namespace: DevExpress.ExpressApp.Actions

Assembly: DevExpress.ExpressApp.v19.2.dll

Declaration

public event SimpleActionExecuteEventHandler Execute
Public Event Execute As SimpleActionExecuteEventHandler
public event SimpleActionExecuteEventHandler Execute
Public Event Execute As SimpleActionExecuteEventHandler
public event SimpleActionExecuteEventHandler Execute
Public Event Execute As SimpleActionExecuteEventHandler

Event Data

The Execute event handler receives an argument of the SimpleActionExecuteEventArgs type. 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.
SelectedObjects Provides access to the objects selected in the currently invoked View.
ShowViewParameters Provides access to the ShowViewParameters object, specifying a View, displayed after executing the current Action.
(Inherited from ActionBaseEventArgs)

Remarks

The main entry point of a Simple Action is its Execute event. This event is raised when an end-user clicks the Simple Action's control, which is represented by a button by default. Handle this event to execute custom code. For this purpose, use the handler's parameter represented by a SimpleActionExecuteEventArgs object. For instance, this parameter provides access to the current and selected objects. 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.

See Also