Aspose provides this functionality through the Aspose.Cells.AutoFilter object.
The documentation can be found here: https://apireference.aspose.com/net/cells/aspose.cells/autofilter
And some examples can be found here: 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";