[英]Aspose.Cells for .NET Enable Data Filtering
I just started working with the Aspose.Cell
's library for .NET and am having some issues finding documentation on how to enable Data Filtering for an output Excel sheet. 我刚刚开始使用
Aspose.Cell
的.NET库,并且在查找如何为输出Excel工作表启用数据过滤的文档时遇到了一些问题。
I understand this functionality is built into Aspose.Cells.GridWeb
and documented here ( http://www.aspose.com/docs/display/cellsnet/Data+Filtering ) however I cannot use this namespace to produce a document with this filtering enabled. 我知道这个功能内置在
Aspose.Cells.GridWeb
并在此处记录( http://www.aspose.com/docs/display/cellsnet/Data+Filtering )但是我无法使用此命名空间生成启用了此过滤的文档。
Is this functionality just not possible through the use of Aspose
? 通过使用
Aspose
这项功能是不可能的?
Aspose provides this functionality through the Aspose.Cells.AutoFilter object. Aspose通过Aspose.Cells.AutoFilter对象提供此功能。
The documentation can be found here: https://apireference.aspose.com/net/cells/aspose.cells/autofilter 文档可以在这里找到: https : //apireference.aspose.com/net/cells/aspose.cells/autofilter
And some examples can be found here: https://docs.aspose.com/display/cellsnet/Data+Filtering 这里可以找到一些例子: https : //docs.aspose.com/display/cellsnet/Data+Filtering
To add autofilter to a heading row: 要将自动过滤器添加到标题行:
//Creating AutoFilter by giving the cells range of the heading row
worksheet.AutoFilter.Range = "A1:B1";
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.