Back to Devexpress

DefaultListViewOptionsAttribute Class

expressappframework-devexpress-dot-expressapp-1cbe4f48.md

latest2.4 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, Inherited = true, AllowMultiple = false)]
public class DefaultListViewOptionsAttribute :
    Attribute
vb
<AttributeUsage(AttributeTargets.Class Or AttributeTargets.Interface, Inherited:=True, AllowMultiple:=False)>
Public Class DefaultListViewOptionsAttribute
    Inherits 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 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

DefaultListViewOptionsAttribute Members

DevExpress.ExpressApp Namespace