---
title: "WebCells.ColumnNameToIndex"
url: "https://reference.aspose.com/cells/net/aspose.cells.gridweb.data/webcells/columnnametoindex/"
product: "Aspose.Cells for .NET API Reference"
description: "WebCells method. Gets column index according to column name"
---

## WebCells.ColumnNameToIndex method

Gets column index according to column name.

```csharp
public static int ColumnNameToIndex(string columnName)
```

| Parameter | Type | Description |
| --- | --- | --- |
| columnName | String | Column name. |

### Return Value

Column index.

### See Also

* class [WebCells](../)
* namespace [Aspose.Cells.GridWeb.Data](../../../aspose.cells.gridweb.data/)
* assembly [Aspose.Cells.GridWeb](../../../)


