---
title: "GridCells.MaxDataColumn"
url: "https://reference.aspose.com/cells/net/aspose.cells.griddesktop.data/gridcells/maxdatacolumn/"
product: "Aspose.Cells for .NET API Reference"
description: "GridCells property. Maximum column index of cell which contains data"
---

## GridCells.MaxDataColumn property

Maximum column index of cell which contains data.

```csharp
public int MaxDataColumn { get; }
```

### Remarks

-1 will be returned if there is no cell which contains data. This property needs to iterate and check all cells in a worksheet, so it is time-consum

### See Also

* class [GridCells](../)
* namespace [Aspose.Cells.GridDesktop.Data](../../../aspose.cells.griddesktop.data/)
* assembly [Aspose.Cells.GridDesktop](../../../)


