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 |
---|---|---|
Master |
List |
A Master |
Available values:
Name | Description |
---|---|
List |
A List View is displayed without a Detail View alongside. |
List |
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:
You can also use the DefaultListViewOptions attribute to allow in-place editing in code (see Data Annotations in Data Model).