Skip to main content
.NET 6.0+

XafApplication.CreateDashboardView(IObjectSpace, String, Boolean) Method

Creates a Dashboard View using information from the Application Model‘s Views | DashboardView node specified by the dashboardViewID parameter.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.1.dll

NuGet Package: DevExpress.ExpressApp

Declaration

public DashboardView CreateDashboardView(
    IObjectSpace objectSpace,
    string dashboardViewId,
    bool isRoot
)

Parameters

Name Type Description
objectSpace IObjectSpace

An IObjectSpace object representing the Object Space which is used to work with the database. This object is assigned to the View.ObjectSpace property.

dashboardViewId String

A string that represents an identifier of the Application Model node that serves as an information source for creating a new Dashboard View.

isRoot Boolean

true, if the created Dashboard View is independent and owns the Object Space passed using the objectSpace parameter; false, if the created Detail View is nested to another root View that owns the Object Space. This value is assigned to the View.IsRoot property.

Returns

Type Description
DashboardView

The created Dashboard View.

Remarks

Use this method to create a Dashboard View and initialize its properties by the values passed as parameters.

Note

Do not use another View’s Object Space for the creation of a new root View in it. Instead, create a new Object Space via the XafApplication.CreateObjectSpace method for the new root View.

See Also