Resize Rows and Columns
Contents
[
Hide
]
Sometimes cell values are wider that the cell they are in, or are on several lines. Such values are not fully visible to users unless they change the height and width of rows and columns. Aspose.Cells.GridWeb fully supports setting row heights and column width. This topic discusses these features in detail with the help of examples.
Working with Row Heights and Column Width
Setting Row Height
To set the height of a row:
- Add the Aspose.Cells.GridWeb control to your Web Form.
- Access the worksheet’s Cells collection.
- Set the height of all cells in any specified row.
SetRowHeight and SetColumnWidth method of the Cells collection also has variants available to set row height and column width measurements in inches and pixels.
Setting Column Width
To set the width of a column:
- Add the Aspose.Cells.GridWeb control to your Web Form.
- Access the worksheet’s Cells collection.
- Set the width of all cells in any specified column.