ListView.MasterDetailMode Property
Specifies whether to display the Detail View of the currently selected object near the current List View.
Namespace: DevExpress.ExpressApp
Assembly: DevExpress.ExpressApp.v24.1.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Property Value
Type | Description |
---|---|
MasterDetailMode | A MasterDetailMode enumeration value specifying whether to display the Detail View of the currently selected object near the current List View. |
Remarks
The MasterDetailMode
property enables the split layout:
- WinForms
- ASP.NET Web Forms
- ASP.NET Core Blazor
You can also specify this property in the DefaultListViewOptionsAttribute attribute (see Data Annotations in Data Model).
The value of this property is assigned to the Application Model‘s Application | Views | List View node’s IModelListView.MasterDetailMode property. You can change this property’s value using the Model Editor.
The default value of this property is the value that is assigned to the MasterDetailMode property of the Application Model’s List View node.
Important Notes
Only WinForms applications, ASP.NET Web Forms applications with the ASPxGridListEditor, and ASP.NET Core Blazor applications with the DxGridListEditor support MasterDetailMode.ListViewAndDetailView mode.
- In ASP.NET Web Forms applications, the IModelListViewWeb.DetailRowMode option is similar to
MasterDetailMode
but it allows you to show a Detail View in a List View’s Detail Row. - Blazor ListViews with a split layout display Dashboards in read-only mode.
- For the best performance, we do not recommend that you use IModelListViewWeb.DetailRowMode together with the
ListViewAndDetailView
mode. - ASPxGridView and DxGridListEditor in
ListViewAndDetailView
mode ignore the AllowEdit and NewItemRowPosition options.