Delete Rows and Columns
Contents
[
Hide
]
This topic demonstrates how to delete rows and columns from a worksheet using the Aspose.Cells.GridWeb API. With the help of this feature, developers can delete rows or columns at runtime.
Deleting Rows
To delete a row from your worksheet:
- Add the Aspose.Cells.GridWeb control to a Web Form.
- Access the worksheet you are deleting rows from.
- Delete a row from the worksheet by specifying its row index.
Deleting Columns
To delete a column from your worksheet:
- Add the Aspose.Cells.GridWeb control to a Web Form.
- Access the worksheet you want to delete columns from.
- Delete a column from the worksheet by specifying its column index.
You can also use DeleteRows/DeleteColumns methods to delete multiple rows/columns into the worksheets.