---
id: "M:cAlgo.API.GridRow.SetHeightInStars(System.Double)"
kind: "method"
type: "T:cAlgo.API.GridRow"
url: "https://help.ctrader.com/ctrader-algo/references/Controls/Layout/Grid/GridRow/SetHeightInStars/"
---

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

# GridRow.SetHeightInStars

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

## SetHeightInStars(double stars)

Sets the height of the grid row in stars.

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
void SetHeightInStars(double stars)
```

Python:

```python
gridRow.SetHeightInStars(stars: float) -> None
```

### Parameters

- `stars` (`double`, Python `float`): The stars.

### Examples

C#:

```csharp
var grid = new Grid(2, 1) { Height = 150 };
grid.Rows[0].SetHeightInStars(1);
grid.Rows[1].SetHeightInStars(2);
Chart.AddControl(grid);
```

Python:

```python
grid = Grid(2, 1)
grid.Height = 150
grid.Rows[0].SetHeightInStars(1)
grid.Rows[1].SetHeightInStars(2)
api.Chart.AddControl(grid)
```

