Reapplies a filter.
NuGet Package: DevExpress.Spreadsheet.Core
Use the ReApply method to reapply a filter after the data in the filtered range has been changed.
Worksheet worksheet = workbook.Worksheets["Regional sales"]; workbook.Worksheets.ActiveWorksheet = worksheet; // Enable filtering for the specified cell range. CellRange range = worksheet["B2:E23"]; worksheet.AutoFilter.Apply(range); // Filter values in the "Sales" column that are greater than 5000$. worksheet.AutoFilter.Columns.ApplyCustomFilter(5000, FilterComparisonOperator.GreaterThan); // Change the data and reapply the filter. worksheet["D3"].Value = 5000; worksheet.AutoFilter.ReApply();
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the ReApply() method.
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.