.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET 5.0+

ListViewProcessCurrentObjectController Class

Represents a ViewController descendant that contains the ListViewShowObject Action.

Namespace: DevExpress.ExpressApp.SystemModule

Assembly: DevExpress.ExpressApp.v21.2.dll


public class ListViewProcessCurrentObjectController :


The ListViewProcessCurrentObjectController is intended to execute its ListViewShowObject Action when an end-user presses an object in the current List View. This Action invokes a Detail View representing the pressed object.

The ListViewProcessCurrentObjectController executes its ListViewShowObject Action when the OnProcessSelectedItem method of the current List View’s List Editor (see ListEditor) is called. So, the ListViewShowObject Action is executed if the List Editor that is used to represent a List View calls this method. Currently, the ASPxGridListEditor, TreeListEditor, Windows Forms SchedulerListEditor and GridListEditor call this method when an object is double-clicked or ENTER is pressed. When implementing a custom List Editor, you can call this method where required, as well.

To execute a custom Action instead of the ListViewShowObject Action in a certain List View, handle the ListViewProcessCurrentObjectController‘s ListViewProcessCurrentObjectController.CustomProcessSelectedItem event. For details, refer to the How to: Replace a List View’s Default Action topic.

To access the ListViewShowObject Action, use the ListViewProcessCurrentObjectController.ProcessCurrentObjectAction property.

The ListViewProcessCurrentObjectController is activated for List Views only. To ascertain whether the Controller is active, use the Controller.Active property. If you need to know the reason for its deactivation or activation at runtime, use the DiagnosticInfo Action.

Information on the ListViewProcessCurrentObjectController and its ListViewShowObject Action is available in the Application Model‘s ActionDesign node. To access it, use the Model Editor.

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


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