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

AutoSuggestEdit.ItemStringFormat Property

Gets or sets the composite string that specifies how to format the items in the editor’s drop down. This is a dependency property.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v24.2.dll

NuGet Package: DevExpress.Wpf.Core

#Declaration

public string ItemStringFormat { get; set; }

#Property Value

Type Description
String

The composite string that specifies how to format the items in the editor’s dropdown.

#Remarks

The ItemStringFormat format string is applied to the editor’s drop-down items. Use the DisplayMember property to specify an object’s data field whose values are displayed in the editor’s drop-down list.

#Example

<dxe:AutoSuggestEdit ...
    ItemStringFormat="City: {0}"
    TextMember="City"
    DisplayMember="City"
    QuerySubmitted="AutoSuggestEdit_QuerySubmitted"/>

See Also