Removing a Row from Worksheet
Contents
[
Hide
]
This is another basic topic for the developers to explain a basic approach of removing a row from the worksheet. It is a simple and handy feature that can be used by developers while working with Aspose.Cells.GridDesktop.
To remove a row from the worksheet, please follow the steps below:
- Access any desired Worksheet
- Remove Row from the Worksheet by specifying the index of the row to be removed
Code sample below shows you how to removing a row from worksheet.
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 row of the worksheet | |
sheet.RemoveRow(0); |