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

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

# GridRow.MaxHeight

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

## MaxHeight

Gets or sets the maximum height of the grid row.

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.AddRow, Grid.Rows).
- Cloud: Never available in the cloud: it is only returned by members that do not work there (Grid.AddRow, Grid.Rows).

C#:

```csharp
double MaxHeight {get; set;}
```

Python:

```python
gridRow.MaxHeight: float
```

### Returns

`double` — 

### Examples

C#:

```csharp
var grid = new Grid(2, 1);
grid.Rows[0].SetHeightToAuto();
grid.Rows[0].MaxHeight = 50;
Print("Maximum height: {0}", grid.Rows[0].MaxHeight);
```

Python:

```python
grid = Grid(2, 1)
grid.Rows[0].SetHeightToAuto()
grid.Rows[0].MaxHeight = 50
api.Print(f"Maximum height: {grid.Rows[0].MaxHeight}")
```

