# Sandbox.UI.BaseTreeView.GetParentRow

```csharp
int GetParentRow(int row)
```

The nearest row above with one less depth, or -1 for a root.

### Parameters

- `row` (`int`)

### Returns

`int`

Declared in [Sandbox.UI.BaseTreeView](/api/Sandbox.UI.BaseTreeView).
Assembly: `Sandbox.Engine`.
