The requested page is not available for the requested platform. You are viewing the content for Default platform.

DetailView(IObjectSpace, Object, XafApplication, Boolean) Constructor

Creates an instance of the DetailView class with the specified settings.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v19.1.dll

Declaration

public DetailView(
    IObjectSpace objectSpace,
    object obj,
    XafApplication application,
    bool isRoot
)
Public Sub New(
    objectSpace As IObjectSpace,
    obj As Object,
    application As XafApplication,
    isRoot As Boolean
)

Parameters

Name Type Description
objectSpace IObjectSpace

An IObjectSpace object representing the Object Space that enables the created Detail View to work with a database.

obj Object

An Object that will be represented by the created Detail View. This value is assigned to the DetailView.CurrentObject property.

application XafApplication

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

isRoot Boolean

true to create a root Detail View; otherwise, false. This value is assigned to the View.IsRoot property.

Remarks

The constructor is used to create and initialize a new DetailView object. It initializes its properties and creates a layout manager. Since the View.Model property is not initialized, the ListView.Caption, View.AllowEdit, View.AllowNew, View.AllowDelete and View.Id properties are not initialized as well. So, this constructor is used when the information from the Application Model does not need to be applied.

This method is not designed to be used directly from your code. Detail Views are created automatically. If you need to create a custom Detail View, use one of the XafApplication.CreateDetailView method overloads.

See Also