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

Fires when a token is about to be removed from this TokenEdit.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DXCategory("Events")]
public event TokenEditTokenRemovingEventHandler TokenRemoving

#Event Data

The TokenRemoving event's data class is DevExpress.XtraEditors.TokenEditTokenRemovingEventArgs.

#Remarks

Before a token is removed from the TokenEdit control, the TokenRemoving event occurs. You can handle this event and use its e.Token and e.Cancel property to get information about the target token and prevent it from being removed respectively. If the TokenRemoving event was not canceled, it is followed by the RepositoryItemTokenEdit.TokenRemoved event.

See Also