wpf-120531-controls-and-libraries-data-grid-filtering-and-searching-filter-dropdown-date-time-drop-down-filter.md
The GridControl provides a drop-down calendar for date-time columns. You can use the ColumnBase.FilterPopupMode property to change the calendar’s predefined values.
The following table lists the date-time column’s drop-down modes:
|
Mode
|
Image
|
Description
|
Notes
| | --- | --- | --- | --- | |
DateSmart
(default)
|
|
The drop-down filter provides a built-in calendar and checkboxes to select non-intersecting date intervals.
If there is no underlying data in a date range, the corresponding checkbox is hidden.
All the checkboxes are visible when the values in the date-time column are set to null.
|
When the ColumnBase.ShowEmptyDateFilter property is false :
When the ColumnBase.ShowEmptyDateFilter property is true :
| |
Date
|
|
This mode is equivalent to DateSmart regarding the drop-down filter’s appearance.
The drop-down filter displays all the checkboxes, even if there is no data in the corresponding date range.
|
When the ColumnBase.ShowEmptyDateFilter property is false :
When the ColumnBase.ShowEmptyDateFilter property is true :
| |
DateCompact
|
|
The drop-down filter does not display predefined values.
|
When the ColumnBase.ShowEmptyDateFilter property is false :
When the ColumnBase.ShowEmptyDateFilter property is true :
| |
DateAlt
|
|
This mode is equivalent to DateSmart , but with a different set of filters: Today, This week, This month, Next month, etc.
|
When the ColumnBase.ShowEmptyDateFilter property is false :
When the ColumnBase.ShowEmptyDateFilter property is true :
|