Skip to main content
.NET Framework 4.6.2+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

IModelClassNewItemRow.DefaultListViewNewItemRowPosition Property

Indicate whether to display the new item row in the default editable List View.

Namespace: DevExpress.ExpressApp.SystemModule

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

NewItemRowPosition DefaultListViewNewItemRowPosition { get; set; }

#Property Value

Type Description
NewItemRowPosition

A NewItemRowPosition enumeration value specifying whether to display the new item row in the default editable List View.

Available values:

Name Description
None

The new item row is not displayed in a List Editor.

Top

The new item row is positioned at the top of a List Editor.

Bottom

The new item row is positioned at the bottom of a List Editor.

#Remarks

In a Windows Forms application, the DefaultListViewNewItemRowPosition property specifies whether to display the NewItemRow in the default editable List View (see DefaultListViewAllowEdit). The NewItemRow allows end-users to create new objects directly in a ListView.

In an ASP.NET Web Forms application, the DefaultListViewNewItemRowPosition property specifies whether to display the New (InlineEdit_NewButton) buttons in an each row of the default editable List View (see DefaultListViewAllowEdit). These buttons allow end-users to create new objects directly in a ListView.

However, if the InlineEditMode property of the certain List View is set to PopupEditForm, the DefaultListViewNewItemRowPosition property value does not affect the pop-up edit form position.

The DefaultListViewNewItemRowPosition property default value is None. You can set a value for this attribute in code via the DefaultListViewOptions attribute (see Data Annotations in Data Model).

See Also