RepositoryItemLookUpEdit.DropDownRows Property

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

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[DXCategory("Behavior")]
[DefaultValue(7)]
public int DropDownRows { get; set; }
<DXCategory("Behavior")>
<DefaultValue(7)>
Public Property DropDownRows As Integer

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.

See Also