DxDataGridDateEditColumn.EditorDisplayFormat Property

Specifies the pattern used to format the display value of the column’s editor when it is not focused.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

Declaration

[Parameter]
public string EditorDisplayFormat { get; set; }

Property Value

Type Description
String

The format pattern.

Remarks

Use the EditorDisplayFormat property to format the display value of the Date Edit’s column’s editor when the it is not focused. Use the EditorFormat property to format the editor’s value in edit mode when the editor is focused. If the EditorDisplayFormat property is not set, the EditorFormat is applied both in display and edit modes.

See the Standard Date and Time Format Strings and Custom Date and Time Format Strings help topics for more information about supported format patterns.

To format the Date Edit column’s cell values, use the DisplayFormat property.

The following example demonstrates how to apply:

<DxDataGrid Data="@forecasts">
    ...
    <DxDataGridDateEditColumn Field="@nameof(WeatherForecast.Date)" 
        DisplayFormat="D" 
        EditorDisplayFormat="D"
        EditorFormat="d">
    </DxDataGridDateEditColumn>
</DxDataGrid>

Data Grid DateEditColumn Formats

Run Demo: Data Grid - Column Types

See Also