Back to Devexpress

ColumnBase.RoundDateDisplayFormat Property

wpf-devexpress-dot-xpf-dot-grid-dot-columnbase-9fbb7e4d.md

latest1.8 KB
Original Source

ColumnBase.RoundDateDisplayFormat Property

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

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public string RoundDateDisplayFormat { get; set; }
vb
Public Property RoundDateDisplayFormat As String

Property Value

TypeDescription
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:

xaml
<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

ColumnBase Class

ColumnBase Members

DevExpress.Xpf.Grid Namespace