FilterControl.FilterColumns Property
Gets a filter column collection.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v19.2.dll
Declaration
Property Value
Type | Description |
---|---|
DevExpress.XtraEditors.Filtering.FilterColumnCollection | A DevExpress.XtraEditors.Filtering.FilterColumnCollection object that represents the collection of filter columns. |
Remarks
When a source control is assigned to the FilterControl.SourceControl property, the FilterColumns collection is automatically populated with the source control’s columns. By default, the FilterControl.SortFilterColumns property is set to true, and this ensures that the created columns in the collection will be sorted by captions in ascending order. Subsequent changes to the FilterControl.SortFilterColumns property don’t re-sort the column collection.
A FilterControl supports unbound mode. When the control is not bound to any source control, it still allows an end-user to construct filter criteria. In this instance, columns must be added to the FilterColumns collection manually via the FilterControl.SetFilterColumnsCollection method. See the ‘Filter Control’ module in the XtraGrid’s Main Demo for an example.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the FilterColumns 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.