Back to Devexpress

ExcelColumnFilterSettings.FilterItems Property

wpf-devexpress-dot-xpf-dot-grid-dot-excelcolumnfiltersettings.md

latest3.3 KB
Original Source

ExcelColumnFilterSettings.FilterItems Property

Gets or sets a list of filter items displayed within the Excel-style filter.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public IList<object> FilterItems { get; set; }
vb
Public Property FilterItems As IList(Of Object)

Property Value

TypeDescription
IList<Object>

A list of filter items displayed within the Excel-style filter.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to FilterItems
FilterPopupEventArgs

.ExcelColumnFilterSettings .FilterItems

|

Remarks

Use the FilterItems property to define a custom set of filter items.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the FilterItems 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-filter-columns-bound-to-collection-properties/CS/FilterDropDown_AgregateOperators/Behaviors/FilterDropDownAggregateOperatorBehavior.cs#L48

csharp
e.ExcelColumnFilterSettings.AllowedFilterTypes = DevExpress.Xpf.Grid.ExcelColumnFilterType.FilterValues;
    e.ExcelColumnFilterSettings.FilterItems = ColumnItemsSource;
}

wpf-data-grid-filter-columns-bound-to-collection-properties/VB/FilterDropDown_AgregateOperators/Behaviors/FilterDropDownAggregateOperatorBehavior.vb#L61

vb
e.ExcelColumnFilterSettings.AllowedFilterTypes = ExcelColumnFilterType.FilterValues
    e.ExcelColumnFilterSettings.FilterItems = ColumnItemsSource
End If

See Also

ExcelColumnFilterSettings Class

ExcelColumnFilterSettings Members

DevExpress.Xpf.Grid Namespace