Skip to main content
A newer version of this page is available. .

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Core, 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