Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

DefaultListViewOptionsAttribute Class

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

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v20.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

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

Remarks

The DefaultListViewOptions attribute exposes a range of constructors that allow you configure List Views in code. You can use these constructors to set the following options:

  1. A List View’s master-detail mode. By default, the ListViewOnly mode is set. This option is supported in Windows Forms applications only.
  2. A List View’s View.AllowEdit state. By default, it is set to false.
  3. The position of the new item row in a List View’s List Editor. By default, the NewItemRowPosition.None value is set, which means that the row is not added. The remaining NewItemRowPosition.Top and NewItemRowPosition.Bottom values are only supported if the List View’s AllowEdit state is set to true.

Using the DefaultListViewOptionsAttribute attribute is analogous to setting the MasterDetailMode, AllowEdit and NewItemRowPosition properties of the corresponding IModelListView node.

Inheritance

Object
Attribute
DefaultListViewOptionsAttribute
See Also