Skip to main content

DateEditProperties.DisplayFormatString Property

Gets or sets the pattern used to format the editor’s value for display purposes.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web


public override string DisplayFormatString { get; set; }

Property Value

Type Default Description
String "d"

A string representing the format pattern.


This property overrides the base EditPropertiesBase.DisplayFormatString property to provide a specific default value.


Display values can be formatted using the standard formatting mechanism. It allows you to format values using standard format patterns. Format specifiers for composing the format pattern are described in the Numeric Format Strings and Date and Time Format Strings topics.

If an editor is used for inplace editing within a complex data control (such as the ASPxGridView or ASPxTreeList), the TextEditProperties.DisplayFormatInEditMode property can be additionally used to apply the format provided by the DisplayFormatString property to the editor value in the data control’s edit mode.


<dx:ASPxGridView ID="ASPxGridView1" runat="server" Width="100%" KeyFieldName="OrderID"
  DataSourceID="OrdersDataSource" >
        <dx:GridViewDataTextColumn FieldName="OrderID" VisibleIndex="0" ReadOnly="True">
            <EditFormSettings Visible="False" />
        <dx:GridViewDataDateColumn FieldName="OrderDate" VisibleIndex="1">
            <PropertiesDateEdit DisplayFormatString="ddd dd/MM/yyyy" Height="30" />
        <dx:GridViewDataTextColumn FieldName="ShipName" VisibleIndex="2">
    <SettingsPager Mode="ShowPager" PageSize="4" />

GridView - DisplayFormatString Property

See Also