Satır ve Sütunları Silme

Satırları Silme

Çalışma sayfanızdan bir satırı silmek için:

  1. Aspose.Cells.GridWeb denetimini bir Web Formuna ekleyin.
  2. Satırları sildiğiniz çalışma sayfasına erişin.
  3. Satırın indisini belirterek çalışma sayfasından bir satırı silin.
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET
// Accessing the reference of the worksheet that is currently active
GridWorksheet sheet = GridWeb1.WorkSheets[GridWeb1.ActiveSheetIndex];
// Get row index entered by user
int rowIndex = Convert.ToInt16(txtRowIndex.Text.Trim());
// Delete row at specified index
sheet.Cells.DeleteRow(rowIndex);

Sütunları Silme

Çalışma sayfanızdan bir sütunu silmek için:

  1. Aspose.Cells.GridWeb denetimini bir Web Formuna ekleyin.
  2. Sütunları silmek istediğiniz çalışma sayfasına erişin.
  3. Sütunun indisini belirterek çalışma sayfasından bir sütunu silin.
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET
// Accessing the reference of the worksheet that is currently active
GridWorksheet sheet = GridWeb1.WorkSheets[GridWeb1.ActiveSheetIndex];
// Get column index entered by user
int columnIndex = Convert.ToInt16(txtColumnIndex.Text.Trim());
// Delete column at specified index
sheet.Cells.DeleteColumn(columnIndex);