Skip to main content

RepositoryItemLookUpEdit.DropDownRows Property

Gets or sets the height of the dropdown (in rows).

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(7)]
[DXCategory("Behavior")]
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 rows (items) displayed in the dropdown when it is opened for the first time. Use the DropDownItemHeight property to specify a custom height of rows.

If the total number of records in the data source is greater than DropDownRows, the lookup displays the vertical scroll bar.

If the value of the DropDownRows property is greater than the total number of records in the data source, you can enable the UseDropDownRowsAsMaxCount property to adjust the height of the dropdown and avoid white space.

Note

Setting the DropDownRows and PopupWidth properties has no effect if the dropdown is already open.

The following code snippets (auto-collected from DevExpress Examples) contain references 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