---
id: "P:cAlgo.API.GridColumn.Index"
kind: "property"
type: "T:cAlgo.API.GridColumn"
url: "https://help.ctrader.com/ctrader-algo/references/Controls/Layout/Grid/GridColumn/Index/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# GridColumn.Index

Member of [GridColumn](https://help.ctrader.com/ctrader-algo/references/Controls/Layout/Grid/GridColumn/index.md).

## Index

Gets the grid column index.

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Never available in the CLI: it is only returned by members that do not work there (Grid.AddColumn, Grid.Columns).
- Cloud: Never available in the cloud: it is only returned by members that do not work there (Grid.AddColumn, Grid.Columns).

C#:

```csharp
int Index {get;}
```

Python:

```python
gridColumn.Index: int
```

### Returns

`int` — 

### Examples

C#:

```csharp
var grid = new Grid(1, 0);
var column = grid.AddColumn();
grid.AddChild(new TextBlock { Text = "EURUSD" }, 0, column.Index);
Print("Column index: {0}", column.Index);
```

Python:

```python
grid = Grid(1, 0)
column = grid.AddColumn()
textBlock = TextBlock()
textBlock.Text = "EURUSD"
grid.AddChild(textBlock, 0, column.Index)
api.Print(f"Column index: {column.Index}")
```

