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

IModelClass.DefaultListViewMasterDetailMode Property

Specifies whether to display the default Detail View near the current List View. This option affects List Views whose ModelClass property is set to the corresponding IModelClass instance and does not affect lookup List Views.

Namespace: DevExpress.ExpressApp.Model

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

[DefaultValue(MasterDetailMode.ListViewOnly)]
MasterDetailMode DefaultListViewMasterDetailMode { get; set; }

#Property Value

Type Default Description
MasterDetailMode ListViewOnly

A MasterDetailMode enumeration value that specifies whether to display the default Detail View near the current List View.

Available values:

Name Description
ListViewOnly

A List View is displayed without a Detail View alongside.

ListViewAndDetailView

A List View is displayed alongside a Detail View.

#Remarks

Only WinForms applications, ASP.NET Web Forms applications with the ASPxGridListEditor, and ASP.NET Core Blazor applications with the DxGridListEditor support MasterDetailMode.ListViewAndDetailView mode.

To set this property, open the Model Editor and navigate to the Application | BOModel | <Class> node:

The DefaultListViewMasterDetailMode property in the Model Editor

You can also use the DefaultListViewOptions attribute to allow in-place editing in code (see Data Annotations in Data Model).

See Also