Multiple AutoFilter Ranges?

Hi. I'm wondering if it is possible to assign multiple Autofilter ranges to the same sheet with XLSIO?

Any help would be appreciated.


1 Reply

YG Yavanaarasi G Syncfusion Team May 20, 2008 11:46 AM UTC

Hi Hockett,

Thank you for your interest in Syncfusion products.

Yes. It is possible to assign multiple Autofilter ranges to the same sheet with XlSIO. Please refer the below code snippet:


[C#]
IRanges rangesOne = sheet.CreateRangesCollection();
rangesOne.Add(sheet.Range["A1:C7"]);
sheet.AutoFilters.FilterRange = rangesOne;


Here is the sample for your reference:

http://websamples.syncfusion.com/samples/XlsIO.Windows/F73791/ExcelAutofilter/main.htm

Please try this and let me know if this helps.

Regards,
G.Yavana





Loader.
Up arrow icon