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

DetailView(IModelDetailView, IObjectSpace, Object, XafApplication, Boolean) Constructor

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

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public DetailView(
    IModelDetailView info,
    IObjectSpace objectSpace,
    object obj,
    XafApplication application,
    bool isRoot
)

#Parameters

Name Type Description
info IModelDetailView

An IModelDetailView object representing an Application Model node with information on the created Detail View. This value is assigned to the View.Model property.

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 both by values passed as parameters and by property values from the corresponding Application Model‘s IModelDetailView node. This constructor also creates a layout manager, and populates the CompositeView.Items collection using information from the Application Model.

Note

If your business object model refers to reflexive references in the created detail view, an exception is raised. By default, the maximum quantity of reflexive references is 50. It is set by the CompositeView.MaxRecursionDeep public field.

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

See Also