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

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

# GridColumn.Width

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

## Width

Gets the grid column width.

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
GridLength Width {get;}
```

Python:

```python
gridColumn.Width: GridLength
```

### Returns

`GridLength` — 

### Examples

C#:

```csharp
var grid = new Grid(1, 1);
grid.Columns[0].SetWidthInPixels(150);
Print("Width: {0} {1}", grid.Columns[0].Width.Value, grid.Columns[0].Width.UnitType);
```

Python:

```python
grid = Grid(1, 1)
grid.Columns[0].SetWidthInPixels(150)
api.Print(f"Width: {grid.Columns[0].Width.Value} {grid.Columns[0].Width.UnitType}")
```

