---
title: "GridCells.DeleteRange"
url: "https://reference.aspose.com/cells/net/aspose.cells.gridweb.data/gridcells/deleterange/"
product: "Aspose.Cells for .NET API Reference"
description: "GridCells method. Deletes a range of cells and shift cells according to the shift option"
---

## GridCells.DeleteRange method

Deletes a range of cells and shift cells according to the shift option.

```csharp
public void DeleteRange(int startRow, int startColumn, int endRow, int endColumn, 
    GridShiftType shiftType)
```

| Parameter | Type | Description |
| --- | --- | --- |
| startRow | Int32 | Start row index. |
| startColumn | Int32 | Start column index. |
| endRow | Int32 | End row index. |
| endColumn | Int32 | End column index. |
| shiftType | GridShiftType | Shift cells option. |

### See Also

* enum [GridShiftType](../../gridshifttype/)
* class [GridCells](../)
* namespace [Aspose.Cells.GridWeb.Data](../../../aspose.cells.gridweb.data/)
* assembly [Aspose.Cells.GridWeb](../../../)


