We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Unhide all Columns and rows in the excel file

Is there a way to unhide all the columns and rows in the excel files? Thanks for you help in advance


Thank you for Considering Aspose.

You can use Cells.UnhideRow and Cells.UnhideColumn methods to unhide the rows and columns. Please see the following link for more details on Hiding / Unhinding of rows and columns


For Unhiding multiple rows or columns, you can loop through the indexes and unhide the rows and columns one by one. Please see the Sample code for your help

Sample Code:-

Workbook workbook = new Workbook();
Worksheet sheet = workbook.Worksheets[0];


//Unhide the first 100 rows and setting there height to 15
for (int i = 0; i < 100; i++)
sheet.Cells.UnhideRow(i, 15);
//Unhide the first 100 columns and setting there width to 15
for(int i=0;i<100;i++)
sheet.Cells.UnhideColumn(i, 15);

Thank you & Best Regards,