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

RepositoryItemMRUEdit.MaxItemCount Property

Gets or sets the maximum number of items displayed in the editor’s dropdown list.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(0)]
[DXCategory("Behavior")]
public virtual int MaxItemCount { get; set; }

#Property Value

Type Default Description
Int32 0

An integer value specifying the maximum number of items contained by the MRU editor.

#Remarks

Use the MaxItemCount property to define the maximum number of items which a MRU editor can represent. To access the list of items programmatically, read the RepositoryItemComboBox.Items property.

If the MaxItemCount property is set to 0 (the default behavior), the number of items to be maintained by a MRU editor is unlimited. A new value is stored as a new item within the dropdown list when input is confirmed. A new most recently used item is placed at the top of the list by replacing an existing item or shifting them down.

You can specify the number of items displayed in the dropdown window by using the RepositoryItemComboBox.DropDownRows property.

See Also