Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Aspose.Cells allows you to group rows and columns in a worksheet using Cells.GroupRows() and Cells.GroupColumns() methods.
The following sample code shows how to group rows and columns. It groups the rows and columns up to the 3rd level. Please check the output excel file generated with this code. It has two worksheets, the first one contains the grouping of rows and the second one contains the grouping of columns. Please also see the screenshot showing the grouping of rows in its first worksheet.

Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.