Skip to main content
.NET Standard 2.0+

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.v23.1.dll

NuGet Package: DevExpress.ExpressApp


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


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.


See Also