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

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

# GridChildPositionInfo.RowSpan

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

## RowSpan

Gets row span of child.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public int RowSpan {get;}
```

Python:

```python
gridChildPositionInfo.RowSpan: int
```

### Returns

`int` — 

Available since cAlgo.API 5.4.

### Examples

C#:

```csharp
var grid = new Grid(3, 2);
var sideBar = new Border { BackgroundColor = Color.DarkSlateGray };
grid.AddChild(sideBar, 0, 0, 3, 1);
var position = grid.GetChildPosition(sideBar);
if (position.HasValue)
    Print("Row span: {0}", position.Value.RowSpan);
```

Python:

```python
grid = Grid(3, 2)
sideBar = Border()
sideBar.BackgroundColor = Color.DarkSlateGray
grid.AddChild(sideBar, 0, 0, 3, 1)
position = grid.GetChildPosition(sideBar)
if position is not None:
    api.Print(f"Row span: {position.RowSpan}")
```

