ListViewProcessCurrentObjectController.ShowObject(Object, ShowViewParameters, XafApplication, Frame, View) Method

Creates a Detail View for the currently selected object. Assigns the View to the ShowViewParameters.CreatedView property of the passed ShowViewParameters object.

Namespace: DevExpress.ExpressApp.SystemModule

Assembly: DevExpress.ExpressApp.v18.2.dll


public static void ShowObject(
    object obj,
    ShowViewParameters showViewParameters,
    XafApplication application,
    Frame sourceFrame,
    View sourceView
Public Shared Sub ShowObject(
    obj As Object,
    showViewParameters As ShowViewParameters,
    application As XafApplication,
    sourceFrame As Frame,
    sourceView As View


Type Name Description
Object obj

An object for which a Detail View must be created.

ShowViewParameters showViewParameters

A ShowViewParameters object used to invoke a Detail View for the specified object.

XafApplication application

An XafApplication object that provides methods and properties to manage the current application.

Frame sourceFrame

A Frame object that represents the Frame whose View contains the specified object.

View sourceView

A View object that represents the View which contains the specified object.


This method is called when the ListViewProcessCurrentObjectController.ProcessCurrentObjectAction is executed. It creates a Detail View for the specified object. The Detail View is assigned to the ShowViewParameters object passed as the showViewParameters parameter. This causes the assigned View to be shown after the Action is executed (see ShowViewParameters).

An exception is thrown if the specified object is new and the source View is not nested.

If the source View is a read-only nested View, representing an aggregated collection, the created Detail View is set to read-only.

This method is static. You can call it in the Execute event handler of your Action, passing the object and ShowViewParameters specified by the event handler's parameters. In this instance, a Detail View for the passed object will be invoked after your Action has been executed.

See Also