RepositoryItemLookUpEdit.DropDownRows Property
Gets or sets the height of the dropdown (in rows).
Namespace: DevExpress.XtraEditors.Repository
Assembly: DevExpress.XtraEditors.v22.2.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
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.