Skip to main content
.NET Framework 4.6.2+

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

DefaultListViewOptionsAttribute Class

Applied to business classes. Sets a number of default options for the List Views that display objects of the target type.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

[AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, Inherited = true, AllowMultiple = false)]
public class DefaultListViewOptionsAttribute :
    Attribute

#Remarks

The DefaultListViewOptions attribute allows you to specify the following parameters:

  1. A List View’s master-detail mode. The default mode is ListViewOnly. WinForms, ASP.NET Web Forms, and ASP.NET Core Blazor applications support this option.
  2. A List View’s AllowEdit state. The default List View does not allow users to edit data.
  3. The position of the new item row in a List View’s List Editor. The default List View does not add this row (NewItemRowPosition.None). The remaining NewItemRowPosition.Top and NewItemRowPosition.Bottom values are available when the List View’s AllowEdit option is enabled.

As an alternative to DefaultListViewOptionsAttribute, you can set the MasterDetailMode, AllowEdit, and NewItemRowPosition properties of the corresponding IModelListView node.

#Inheritance

Object
Attribute
DefaultListViewOptionsAttribute
See Also