Skip to main content

DxComboBox<TData, TValue>.EditFormat Property

Specifies the pattern used to format an editor’s value.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v22.2.dll


public string EditFormat { get; set; }

Property Value

Type Description

The format pattern.


Use the EditFormat property to format an editor’s value when the editor is focused.


To format the ComboBox’s display value when the editor is not focused, use the DisplayFormat property.

The EditFormat property allows you to format values displayed in one-column and multi-column ComboBoxes.

Format a One-Column ComboBox

The code below applies the following formats to the ComboBox editor:

<DxComboBox Data="@Prices" 

@code {
    IEnumerable<string> Prices = new List<string>() {

    string CurrentPrice { get; set; }

Format a Multi-Column ComboBox

The code below adds three columns to a ComboBox and applies the {1} {2} format to the component’s edit values. This format specifies that the editor value includes values of the Name (VisibleIndex = 1) and Surname (VisibleIndex = 2) columns.


When you enable filter mode for a multi-column ComboBox, the filter only takes into account data of the columns that are used in the editor’s format pattern.

<DxComboBox Data="@Staff.DataSource"
            EditFormat ="{1} {2}">
    <DxListEditorColumn FieldName="Id" Width="50px" />
    <DxListEditorColumn FieldName="FirstName" Caption="Name"/>
    <DxListEditorColumn FieldName="LastName" Caption="Surname"/>

@code {
    Person SelectedPerson { get; set; } = Staff.DataSource[0];

ComboBox - Multiple Columns

Run Demo: ComboBox – Multiple Columns

Watch Video: ComboBox - Multiple Columns and Cascade Lists

If the EditFormat property’s value is not specified, an editor’s value text is controlled by the TextFieldName property.

See Also