Skip to main content
.NET Framework 4.6.2+
  • The page you are viewing does not exist in the .NET 8.0+ platform documentation. This link will take you to the parent topic of the current section.

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

IModelDetailViewWeb.CollectionsEditMode Property

Specifies the Detail View’s mode of operation, with respect to the display of nested List Views.

Namespace: DevExpress.ExpressApp.Web.SystemModule

Assembly: DevExpress.ExpressApp.Web.v24.2.dll

NuGet Package: DevExpress.ExpressApp.Web

#Declaration

ViewEditMode? CollectionsEditMode { get; set; }

#Property Value

Type Description
Nullable<ViewEditMode>

A Nullable<ViewEditMode> enumeration value which specifies the application’s mode of operation with respect to the display of nested List Views.

Available values:

Name Description
View

An XAF element that supports the View-Edit mode is displayed in the read-only mode in ASP.NET Web Forms applications.

Edit

An XAF element that supports the View-Edit mode is displayed in the editable mode in ASP.NET Web Forms applications.

#Remarks

In ViewEditMode.Edit mode used by default, collection properties are always displayed in a Detail View, but can only be modified when the Detail View is in Edit mode.

WebCollectionsMode_Edit

In ViewEditMode.View mode, collection properties are not displayed when a Detail View is in edit mode, and can be modified only when the Detail View is in view mode.

WebCollectionsMode_View

When the CollectionsEditMode property is set to null (Nothing in VB), the value of the IModelOptionsWeb.CollectionsEditMode property is used instead. So, you can use the global property to change the collections edit mode for all Detail Views at once.

You can change the CollectionsEditMode property value in the Views | DetailView node in the Model Editor invoked for the for the ASP.NET Web Forms module or application project.

See Also