Skip to main content

Date-time Drop-down Filter

  • 4 minutes to read

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)

FilterDropDownDateSmart

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

FilterDropDownDate

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

FilterDropDownDateCompact

The drop-down filter does not display predefined values.

When the ColumnBase.ShowEmptyDateFilter property is false:

When the ColumnBase.ShowEmptyDateFilter property is true:

DateAlt

FilterDropDownDateAlt

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: