The requested page is not available for the requested platform. You are viewing the content for Default platform.

IModelListView.DetailView Property

Specifies the List View's Detail View.

Namespace: DevExpress.ExpressApp.Model

Assembly: DevExpress.ExpressApp.v19.1.dll

Declaration

[DataSourceProperty("Application.Views")]
[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; }
<DataSourceProperty("Application.Views")>
<DataSourceCriteria("(AsObjectView Is Not Null) And (AsObjectView.ModelClass Is Not Null) And ('@This.ModelClass' Is Not Null) And (IsAssignableFromViewModelClass('@This.ModelClass.TypeInfo', AsObjectView))")>
Property DetailView As IModelDetailView

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 application).

If the DetailView property is not set, the default Detail View specified by the IModelClass.DefaultDetailView property is used.

See Also