添加 代码 ((IManualRowFilterSupport)fpSpread1.ActiveSheet.RowFilter).IsManual = true;
可以停止操作后重新过滤,加快速度
- fpSpread1.Open(@"E:\FilterData.xlsx");
- fpSpread1.ActiveSheet.Columns[0].AllowAutoFilter = true;
- fpSpread1.Sheets[0].AutoFilterMode = FarPoint.Win.Spread.AutoFilterMode.EnhancedContextMenu;
-
- ((IManualRowFilterSupport)fpSpread1.ActiveSheet.RowFilter).IsManual = true;
复制代码 |