officefileapi-devexpress-dot-spreadsheet-dot-autofiltercolumn-dot-applycustomfilter-x28-devexpress-dot-spreadsheet-dot-filtervalue-devexpress-dot-spreadsheet-dot-filtercomparisonoperator-x29.md
Applies a custom filter based on the specified filter value and comparison operator.
Namespace : DevExpress.Spreadsheet
Assembly : DevExpress.Spreadsheet.v25.2.Core.dll
NuGet Package : DevExpress.Spreadsheet.Core
void ApplyCustomFilter(
FilterValue criteria,
FilterComparisonOperator criteriaOperator
)
Sub ApplyCustomFilter(
criteria As FilterValue,
criteriaOperator As FilterComparisonOperator
)
| Name | Type | Description |
|---|---|---|
| criteria | FilterValue |
A FilterValue object that specifies the filter criterion value.
| | criteriaOperator | FilterComparisonOperator |
One of the FilterComparisonOperator enumeration members that defines the comparison operator used to construct the filter expression.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the ApplyCustomFilter(FilterValue, FilterComparisonOperator) method.
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.
// Filter values in the "Sales" column that are greater than 5000$.
worksheet.AutoFilter.Columns[2].ApplyCustomFilter(5000, FilterComparisonOperator.GreaterThan);
// Filter values in the "Sales" column that are greater than 5000$.
worksheet.AutoFilter.Columns[2].ApplyCustomFilter(5000, FilterComparisonOperator.GreaterThan);
// Filter values in the "Sales" column that are greater than 5000$.
worksheet.AutoFilter.Columns[2].ApplyCustomFilter(5000, FilterComparisonOperator.GreaterThan);
' Filter values in the "Sales" column that are greater than 5000$.
worksheet.AutoFilter.Columns(2).ApplyCustomFilter(5000, FilterComparisonOperator.GreaterThan)
' Filter values in the "Sales" column that are greater than 5000$.
worksheet.AutoFilter.Columns(2).ApplyCustomFilter(5000, FilterComparisonOperator.GreaterThan)
' Filter values in the "Sales" column that are greater than 5000$.
worksheet.AutoFilter.Columns(2).ApplyCustomFilter(5000, FilterComparisonOperator.GreaterThan)
See Also