Back to Devexpress

ColumnBase.RoundDateTimeForColumnFilter Property

wpf-devexpress-dot-xpf-dot-grid-dot-columnbase-0f794452.md

latest2.8 KB
Original Source

ColumnBase.RoundDateTimeForColumnFilter Property

Gets or sets whether to ignore time values when you filter grid data by DateTime values. This is a dependency property.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public bool RoundDateTimeForColumnFilter { get; set; }
vb
Public Property RoundDateTimeForColumnFilter As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true to ignore time values; otherwise, false.

|

Remarks

The RoundDateTimeForColumnFilter property is applied to Drop-down Filter, Automatic Filter Row, Filter Editor, and Filter Elements.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the RoundDateTimeForColumnFilter property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-data-grid-display-datetime-value-in-separate-date-and-time-columns/CS/DateAndTimeColumns_Unbound/MainWindow.xaml#L18

xml
<dxg:GridColumn FieldName="Date" Header="Date" UnboundType="DateTime" UnboundExpression="GetDate([DateTime])" AllowEditing="False"/>
<dxg:GridColumn FieldName="Time" Header="Time" UnboundType="DateTime" UnboundExpression="AddTicks(Today(), GetTimeOfDay([DateTime]))" AllowEditing="False" RoundDateTimeForColumnFilter="False">
    <dxg:GridColumn.EditSettings>

See Also

ColumnBase Class

ColumnBase Members

DevExpress.Xpf.Grid Namespace