Back to Devexpress

AutoSuggestEdit.ItemStringFormat Property

wpf-devexpress-dot-xpf-dot-editors-dot-autosuggestedit-34e2ffd6.md

latest1.7 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public string ItemStringFormat { get; set; }
vb
Public Property ItemStringFormat As String

Property Value

TypeDescription
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

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

See Also

AutoSuggestEdit Class

AutoSuggestEdit Members

DevExpress.Xpf.Editors Namespace