Skip to main content
Tag

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ColumnBase.RoundDateDisplayFormat Property

Gets or sets a format that defines how to display rounded dates.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v24.2.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public string RoundDateDisplayFormat { get; set; }

#Property Value

Type Description
String

A format that defines how display rounded dates.

#Remarks

The RoundDateDisplayFormat is applied if the ColumnBase.RoundDateTimeForColumnFilter property value is true.

The following code sample shows how to specify the display format for rounded dates:

<dxg:GridControl ItemsSource="{Binding Items}" AutoGenerateColumns="AddNew">
    <dxg:GridColumn FieldName="Date" RoundDateDisplayFormat="d">
        <dxg:GridColumn.EditSettings>
            <dxe:DateEditSettings DisplayFormat="u"/>
        </dxg:GridColumn.EditSettings>
    </dxg:GridColumn>
    <dxg:GridControl.View>
        <dxg:TableView ColumnFilterPopupMode="ExcelSmart"/>
    </dxg:GridControl.View>
</dxg:GridControl> 
See Also