DxDataGridDateEditColumn.EditorFormat Property

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

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

Declaration

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

Property Value

Type Description
String

The format pattern.

Remarks

Use EditorFormat property to format the value of the Date Edit column’s editor in edit mode when the editor is focused. Use the EditorDisplayFormat property to format the editor’s display value when the editor is not 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