Removing a Column from Worksheet
Contents
[
Hide
]
This is a basic topic for the developers that just describes the simplest approach to remove a column from the worksheet. It looks simple but a handy feature that can be used by developers in their routine tasks while working with Aspose.Cells.GridDesktop.
Removing a Column from Worksheet
To remove a column from the worksheet, please follow the steps below:
- Access any desired Worksheet
- Remove Column from the Worksheet by specifying the index of the column to be removed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET | |
// Accessing first worksheet of the Grid | |
Worksheet sheet = gridDesktop1.Worksheets[0]; | |
// Removing the first column of the worksheet | |
sheet.RemoveColumn(0); |