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.1.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Remarks
The DefaultListViewOptions attribute allows you to specify the following parameters:
- 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. - A List View’s AllowEdit state. The default List View does not allow users to edit data.
- 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 remainingNewItemRowPosition.TopandNewItemRowPosition.Bottomvalues are available when the List View’sAllowEditoption is enabled.
As an alternative to DefaultListViewOptionsAttribute, you can set the MasterDetailMode, AllowEdit, and NewItemRowPosition properties of the corresponding IModelListView node.
See Also