Back to Devexpress

ColumnBase.AllowedDateTimeFilters Property

wpf-devexpress-dot-xpf-dot-grid-dot-columnbase-ebc6dc06.md

latest5.4 KB
Original Source

ColumnBase.AllowedDateTimeFilters Property

Gets or sets date-time filters that the GridControl‘s column supports.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public AllowedDateTimeFilters? AllowedDateTimeFilters { get; set; }
vb
Public Property AllowedDateTimeFilters As AllowedDateTimeFilters?

Property Value

TypeDescription
Nullable<AllowedDateTimeFilters>

AllowedDateTimeFilters

|

Available values:

Show 17 items

NameDescription
None

There are no allowed filters.

| | MultipleDateRanges |

Specifies the filter criteria defining multiple date ranges.

| | SingleDateRange |

Specifies the filter criteria defining a single date range.

| | IsBeyondThisYear |

Specifies the Is Beyond This Year filter criteria.

| | IsLaterThisYear |

Specifies the Is Later This Year filter criteria.

| | IsLaterThisMonth |

Specifies the Is Later This Month filter criteria.

| | IsNextWeek |

Specifies the Is Next Week filter criteria.

| | IsLaterThisWeek |

Specifies the Is Later This Week filter criteria.

| | IsTomorrow |

Specifies the Is Tomorrow filter criteria.

| | IsToday |

Specifies the Is Today filter criteria.

| | IsYesterday |

Specifies the Is Yesterday filter criteria.

| | IsEarlierThisWeek |

Specifies the Is Earlier This Week filter criteria.

| | IsLastWeek |

Specifies the Is Last Week filter criteria.

| | IsEarlierThisMonth |

Specifies the Is Earlier This Month filter criteria.

| | IsEarlierThisYear |

Specifies the Is Earlier This Year filter criteria.

| | IsPriorThisYear |

Specifies the Is Prior This Year filter criteria.

| | All |

All filters are allowed.

|

Remarks

Refer to the following help topic for more information: Allowed Filters.

The following code snippets (auto-collected from DevExpress Examples) contain references to the AllowedDateTimeFilters 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-bind-to-pagedasyncsource/CS/PagedAsyncSourceSample/MainWindow.xaml#L18

xml
AllowSorting="True" AllowedSortOrders="Descending"
            AllowedDateTimeFilters="SingleDateRange" FilterPopupMode="DateSmart">
<dxg:GridColumn.EditSettings>

wpf-data-grid-bind-to-infiniteasyncsource/CS/InfiniteAsyncSourceSample/MainWindow.xaml#L22

xml
AllowSorting="True" AllowedSortOrders="Descending"
            AllowedDateTimeFilters="SingleDateRange" FilterPopupMode="DateSmart">
<dxg:GridColumn.EditSettings>

wpf-data-grid-use-skip-tokens-to-optimize-paging-EF/CS/MainWindow.xaml#L18

xml
AllowSorting="True" DefaultSortOrder="Descending"
            AllowedDateTimeFilters="SingleDateRange" FilterPopupMode="DateSmart">
<dxg:GridColumn.EditSettings>

how-to-bind-to-grpc/CS/InfiniteAsyncSource.GRPC/MainWindow.xaml#L38

xml
AllowSorting="True" AllowedSortOrders="Descending"
                      AllowedDateTimeFilters="SingleDateRange" FilterPopupMode="DateSmart" AllowEditing="true">
<dxg:GridColumn.EditSettings>

wpf-data-grid-bind-to-custom-service-with-restrictions/CS/MainWindow.xaml#L24

xml
AllowSorting="True" DefaultSortOrder="Descending"
AllowedDateTimeFilters="SingleDateRange" FilterPopupMode="DateSmart"
AllowColumnFiltering="{DXBinding '$dxu:DefaultBooleanExtension.ToDefaultBoolean(!@e(hotColumn).IsSorted and !@e(weekColumn).IsSorted)'}">

See Also

ColumnBase Class

ColumnBase Members

DevExpress.Xpf.Grid Namespace