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

SimpleActionExecuteEventArgs.CurrentObject Property

Provides access to the current object represented by the currently displayed View.

Namespace: DevExpress.ExpressApp.Actions

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public object CurrentObject { get; }

#Property Value

Type Description
Object

An Object which is currently selected in a View.

#Remarks

Simple Actions, like other Actions, accompany Views. When handling the Simple Action’s SimpleAction.Execute event, you can access the current object of the View that is accompanied by this Action. For this purpose, use the CurrentObject property.

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 CurrentObject 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.

See Also