IModelListView.DetailView Property
Specifies the List View’s Detail View.
Namespace: DevExpress.ExpressApp.Model
Assembly: DevExpress.ExpressApp.v24.1.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 DetailView { get; set; }
Property Value
Type | Description |
---|---|
IModelDetailView | An IModelDetailView representing the DetailView node. This node corresponds to the current List View’s Detail View. |
Remarks
The Detail View specified by this property is:
- invoked when double clicking a field of the current List View, or when a field is focused and ENTER is pressed (in Windows Forms applications);
Note
This is true only if the type of the displayed object equals the current List View’s object type. If a descendant is shown, its Detail View is used, and the DetailView property is ignored.
- displayed together with the current List View in Windows Forms applications when the IModelListView.MasterDetailMode is set to ListViewAndDetailView and IModelListView.MasterDetailView is unspecified;
- invoked when clicking a field of the current List View, or when a row is checked and the Edit button is clicked (in an ASP.NET Web Forms application).
If the DetailView property is not set, the default Detail View specified by the IModelClass.DefaultDetailView property is used.
See Also