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

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

# GridColumn.MinWidth

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

## MinWidth

Defines the grid column minimum 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
double MinWidth {get; set;}
```

Python:

```python
gridColumn.MinWidth: float
```

### Returns

`double` — 

### Examples

C#:

```csharp
var grid = new Grid(1, 2);
grid.Columns[1].SetWidthInStars(1);
grid.Columns[1].MinWidth = 60;
Print("Minimum width: {0}", grid.Columns[1].MinWidth);
```

Python:

```python
grid = Grid(1, 2)
grid.Columns[1].SetWidthInStars(1)
grid.Columns[1].MinWidth = 60
api.Print(f"Minimum width: {grid.Columns[1].MinWidth}")
```

