IModelListView.MasterDetailMode Property
Specifies whether to display the Detail View of the currently selected object near the current List View.
Namespace: DevExpress.ExpressApp.Model
Assembly: DevExpress.ExpressApp.v20.2.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Property Value
Type | Description |
---|---|
MasterDetailMode | A MasterDetailMode enumeration value that specifies whether to display the Detail View of the currently selected object near the current List View. |
Remarks
To specify this property, invoke the Model Editor and navigate to the Views | <ListView> node:
You can also specify this property in code in the DefaultListViewOptions attribute (see Data Annotations in Data Model).
Important Notes
Only WinForms applications and ASP.NET applications with the ASPxGridListEditor support the MasterDetailMode.ListViewAndDetailView mode.
- In ASP.NET WebForms 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.
- For the best performance, we do not recommend that you use IModelListViewWeb.DetailRowMode together with the ListViewAndDetailView mode.
- ASPxGridView in ListViewAndDetailView mode ignores the AllowEdit and NewItemRowPosition options.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the MasterDetailMode property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.