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.v19.1.dll
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:
- A List View’s master-detail mode. By default, the ListViewOnly mode is set. This option is supported in Windows Forms applications only.
- A List View’s View.AllowEdit state. By default, it is set to false.
- 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.
See Also