Skip to main content

RepositoryItemPopupGalleryEdit.QueryDisplayText Event

Enables you to provide custom display text for the editor.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraBars.v23.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