Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RepositoryItemLookUpEdit.UseDropDownRowsAsMaxCount Property

Gets or sets whether the number of visible data rows limits the height of the dropdown window.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(false)]
[DXCategory("Behavior")]
public bool UseDropDownRowsAsMaxCount { get; set; }

#Property Value

Type Default Description
Boolean false

true if the height of the dropdown cannot be greater than the number of data rows; otherwise, false.

#Remarks

You can control the height of the dropdown by using the RepositoryItemLookUpEdit.DropDownRows property, which specifies the number of rows simultaneously displayed in the dropdown window. The following image shows a LookUpEdit control with the RepositoryItemLookUpEdit.DropDownRows property set to 7 and the UseDropDownRowsAsMaxCount property set to false (default value):

RepositoryItemLookUpEdit_DropDownRowsNumber

Because the data source only contains five data rows, you see two empty rows at the bottom of the dropdown. To vertically shrink the dropdown to fit available data rows, set the UseDropDownRowsAsMaxCount property to true. In this case, the height of the dropdown cannot be greater than the number of data rows.

RepositoryItemLookUpEdit_DropDownRowsNumberDecreased

See Also