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

RepositoryItemComboBox.CustomItemDisplayText Event

Enables custom display text to be provided for editor items.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DXCategory("Events")]
public event CustomItemDisplayTextEventHandler CustomItemDisplayText

#Event Data

The CustomItemDisplayText event's data class is DevExpress.XtraEditors.CustomItemDisplayTextEventArgs.

#Remarks

The CustomItemDisplayText event allows you to provide custom display text for editor items. The CustomItemDisplayTextEventArgs object, passed to the event handler, exposes the following properties:

  • Item provides access to the item being processed;
  • Value contains the value of the current item. To provide custom display text for this value, you can format the value according to your needs and then assign the string to the DisplayText property;
  • Index gets the zero-based index of the item;
  • DisplayText allows you to customize the display text of the item being processed.
See Also