We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

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.
Live Chat Icon For mobile
Up arrow icon