---
name: "tvExpand"
type: command
status: ok
groups: ["GUI Control - Tree View"]
arma3_since: "0.74"
locality: {"argument": "local", "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/tvExpand
revid: 377800
updated: 2026-01-03T04:01:32Z
---

# tvExpand

*Command · GUI Control - Tree View · Arma 3 v0.74*

Locality: arguments **local** · effect **local**

## Description

Expands tree item pointed to by the path. IDC means id of parent Tree View.

## Syntax

### Syntax 1

```sqf
tvExpand [idc, path]
```

**Parameters:**

- `idc`: [Number](../topics/Number.md)
- `path`: [Tree View Path](../topics/Tree_View_Path.md) - [] will expand the whole tree if it was collapsed previously with []

**Returns:** [Nothing](../topics/Nothing.md)

### Syntax 2

```sqf
control tvExpand path
```

**Parameters:**

- `control`: [Control](../topics/Control.md)
- `path`: [Tree View Path](../topics/Tree_View_Path.md) - [] will expand the whole tree if it was collapsed previously with []

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
tvExpand [101, [0]];
```

### Example 2

```sqf
_ctrl tvExpand [1];
```

## See also

[tvExpandAll](../commands/tvExpandAll.md) · [tvAdd](../commands/tvAdd.md) · [tvClear](../commands/tvClear.md) · [tvCollapse](../commands/tvCollapse.md) · [tvCount](../commands/tvCount.md) · [tvCurSel](../commands/tvCurSel.md) · [tvData](../commands/tvData.md) · [tvDelete](../commands/tvDelete.md) · [tvPicture](../commands/tvPicture.md) · [tvSetCurSel](../commands/tvSetCurSel.md) · [tvSetData](../commands/tvSetData.md) · [tvSetPicture](../commands/tvSetPicture.md) · [tvSetValue](../commands/tvSetValue.md) · [tvSort](../commands/tvSort.md) · [tvSortByValue](../commands/tvSortByValue.md) · [tvText](../commands/tvText.md) · [tvValue](../commands/tvValue.md)

<sub>Source: [BI Community Wiki — tvExpand](https://community.bistudio.com/wiki/tvExpand) (revision 377800).</sub>
