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

RepositoryItemPopupGalleryEdit.QueryDisplayText Event

Enables you to provide custom display text for the editor.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DXCategory("Events")]
public event QueryDisplayTextEventHandler QueryDisplayText

#Event Data

The QueryDisplayText event's data class is QueryDisplayTextEventArgs. The following properties provide information specific to this event:

Property Description
DisplayText Gets or sets the text to display in the edit box.
EditValue Gets the current edit value.

#Remarks

The QueryDisplayText event is raised each time the editor needs to update its display value. Handle the event to provide the display text manually. To do so, assign the desired string to the QueryDisplayTextEventArgs.DisplayText property value. The QueryDisplayTextEventArgs.EditValue property lets you identify the editor value which is to be formatted.

If you do not provide custom display text via the QueryDisplayText event, the editor’s default display text is formed as a concatenation of gallery item captions (GalleryItem.Caption) delimited by a separator character (RepositoryItemPopupGalleryEdit.SeparatorChar).

See Also