wpf-devexpress-dot-xpf-dot-grid-dot-columnbase-0f794452.md
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
public bool RoundDateTimeForColumnFilter { get; set; }
Public Property RoundDateTimeForColumnFilter As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
true to ignore time values; otherwise, false.
|
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.
<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