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.RemovingMRUItem Event

Occurs before an item is removed from the MRU edit.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DXCategory("Events")]
public event RemovingMRUItemEventHandler RemovingMRUItem

#Event Data

The RemovingMRUItem event's data class is DevExpress.XtraEditors.Controls.RemovingMRUItemEventArgs.

#Remarks

An end-user can remove an item from the MRU edit by clicking the delete button in the drop-down. See the figure below.

MRUEdit_DeleteItem

Before the item is removed from the MRU edit, the RemovingMRUItem event fires, allowing you to cancel the action. To do this, set the RemovingMRUItemEventArgs.Cancel property to true. The RemovingMRUItemEventArgs.Item property returns the item being processed.

Note

The RemovingMRUItem event is not raised if an item is removed from the RepositoryItemMRUEdit.Items collection programmatically.

See Also