RepositoryItemLookUpEdit.DropDownRows Property

Gets or sets the number of rows simultaneously displayed in the dropdown window.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v21.2.dll


public int DropDownRows { get; set; }

Property Value

Type Default Description


The number of visible rows in the dropdown window.


The DropDownRows property specifies the number of dropdown rows displayed when the popup window is opened for the first time.

If the total number of rows in the data source is greater than the value of DropDownRows, a scroll bar appears, thus enabling vertical scrolling.

See the RepositoryItemLookUpEdit.DropDownItemHeight property to specify the height of rows.

The RepositoryItemLookUpEdit.PopupWidth property controls the width of the dropdown.

If there are fewer rows than the DropDownRows property specifies, you can enable the RepositoryItemLookUpEdit.UseDropDownRowsAsMaxCount property to reduce the drop-down panel’s height.

Note: changing the DropDownRows and RepositoryItemLookUpEdit.PopupWidth properties are not in effect after the dropdown window has been opened.

See Also