Skip to main content

RepositoryItemComboBox.CustomItemDisplayText Event

Enables custom display text to be provided for editor items.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.1.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