Removing a Row from Worksheet

Contents
[ ]

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.

// 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);