Skip to main content
.NET Framework 4.6.2+

IModelListView.MasterDetailView Property

Specifies the Detail View that is displayed in MasterDetailMode.ListViewAndDetailView mode.

Namespace: DevExpress.ExpressApp.Model

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

[DataSourceProperty("Application.Views", new string[]{})]
[DataSourceCriteria("(AsObjectView Is Not Null) And (AsObjectView.ModelClass Is Not Null) And ('@This.ModelClass' Is Not Null) And (IsAssignableFromViewModelClass('@This.ModelClass.TypeInfo', AsObjectView))")]
IModelDetailView MasterDetailView { get; set; }

Property Value

Type Description
IModelDetailView

An IModelDetailView object, which is the DetailView node defining a Detail View to be displayed in the ListViewAndDetailView mode.

Remarks

If this property is unspecified, then the IModelListView.DetailView value is used to determine the Detail View to be displayed. If both the MasterDetailView and DetailView properties are unspecified, then the Detail View is determined based on the type of the object created or edited via the List View (the IModelClass.DefaultDetailView value specified for a particular object type is used).

You can create a custom Detail View for a particular selected object or a particular List View by handling the ListView.CreateCustomCurrentObjectDetailView event.

See Also