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

RepositoryItemTokenEdit.DropDownRowCount Property

Gets or sets the maximum number of drop-down menu items for this TokenEdit.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(7)]
[DXCategory("Appearance")]
public int DropDownRowCount { get; set; }

#Property Value

Type Default Description
Int32 7

An Int32 value that is the maximum number of drop-down menu items for this TokenEdit.

#Remarks

The TokenEdit control can display a drop-down list that shows all TokenEditToken objects (see the RepositoryItemTokenEdit.Tokens property) that match the currently entered end-user text. The DropDownRowCount property allows you to specify this drop-down list height by setting the maximum lines number this list can display. The image below illustrates a Token Edit drop-down list limited to 2 items in height.

TokenEdit - Max DropDown Menu Items

You can also use the static RepositoryItemTokenEdit.DefaultDropDownRowCount field to get the default drop-down list height, which is 7 lines.

To disable the drop-down history list, set the RepositoryItemTokenEdit.ShowDropDown property to false.

See Also