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 Class

Represents a Detail View.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public class DetailView :
    ObjectView

#Remarks

The DetailView class is an ObjectView descendant. Use the DetailView class to view or edit an object’s properties.

ASP.NET Core Blazor
A Detail View in an XAF ASP.NET Core Blazor application, DevExpress
Windows Forms
A Detail View in an XAF Windows Forms application, DevExpress
ASP.NET Web Forms
A Detail View in an XAF ASP.NET Web Forms application, DevExpress

XAF automatically generates a user interface for Detail Views. You can customize an auto-generated Detail View in the Application Model. Use the Views | <DetailView> node. For example, you can specify the object that this Detail View displays and change the displayed View Items and their layout.

To customize a Detail View in code, use the Frame.View or ViewController.View property.

To specify the object displayed in the Detail View, use the DetailView.CurrentObject property.

To populate a View with View Items, use the following members:

To customize View Items’ layout, use the CompositeView.LayoutManager property.

Tip

To view and edit the properties of a collection of objects, use the ListView class.

#Inheritance

See Also