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

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

# GridChildPositionInfo.Row

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

## Row

Gets row number of child.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

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

Python:

```python
gridChildPositionInfo.Row: int
```

### Returns

`int` — 

Available since cAlgo.API 5.4.

### Examples

C#:

```csharp
var grid = new Grid(3, 1);
var label = new TextBlock { Text = "Equity" };
grid.AddChild(label, 2, 0);
var position = grid.GetChildPosition(label);
if (position.HasValue)
    Print("Row: {0}", position.Value.Row);
```

Python:

```python
grid = Grid(3, 1)
label = TextBlock()
label.Text = "Equity"
grid.AddChild(label, 2, 0)
position = grid.GetChildPosition(label)
if position is not None:
    api.Print(f"Row: {position.Row}")
```

