---
name: "ctAddRow"
type: command
status: ok
groups: ["GUI Control - Controls Table"]
arma3_since: "1.70"
locality: {"argument": "local", "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/ctAddRow
revid: 310853
updated: 2022-05-07T20:24:08Z
---

# ctAddRow

*Command · GUI Control - Controls Table · Arma 3 v1.70*

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

## Description

Adds one row of controls according to the RowTemplate class. It returns an array containing row index and array of created controls in a format [<rowIndex>, [<control0>, <control1>...<control n>]].

Note that rows and headers are indexed separately.

## Syntax

```sqf
ctAddRow control
```

**Parameters:**

- `control`: [Control](../topics/Control.md)

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

## Examples

### Example 1

```sqf
_array = ctAddRow _control;
```

## See also

[ctAddHeader](../commands/ctAddHeader.md) · [ctClear](../commands/ctClear.md) · [ctCurSel](../commands/ctCurSel.md) · [ctSetCurSel](../commands/ctSetCurSel.md) · [ctRowControls](../commands/ctRowControls.md) · [ctHeaderControls](../commands/ctHeaderControls.md) · [ctRowCount](../commands/ctRowCount.md) · [ctHeaderCount](../commands/ctHeaderCount.md) · [ctSetValue](../commands/ctSetValue.md) · [ctValue](../commands/ctValue.md) · [ctSetData](../commands/ctSetData.md) · [ctData](../commands/ctData.md) · [ctFindRowHeader](../commands/ctFindRowHeader.md) · [ctFindHeaderRows](../commands/ctFindHeaderRows.md) · [ctRemoveRows](../commands/ctRemoveRows.md) · [ctRemoveHeaders](../commands/ctRemoveHeaders.md) · [ctSetRowTemplate](../commands/ctSetRowTemplate.md) · [ctSetHeaderTemplate](../commands/ctSetHeaderTemplate.md)

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