Skip to main content
A newer version of this page is available. .

RepositoryItemLookUpEdit.DropDownRows Property

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

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v19.1.dll

Declaration

[DXCategory("Behavior")]
[DefaultValue(7)]
[SmartTagProperty("DropDown Rows", "")]
public int DropDownRows { get; set; }

Property Value

Type Default Description
Int32 7

The number of visible rows in the dropdown window.

Remarks

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DropDownRows property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also