---
name: "ctSetRowTemplate"
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/ctSetRowTemplate
revid: 310121
updated: 2022-05-05T12:25:35Z
---

# ctSetRowTemplate

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

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

## Description

Takes config path to the new row template. Clears the whole RscControlsTable and sets the new row template (Deleting all rows and headers is easier to implement than replacing the rows and filling them with new data. IDCs could overflow etc.).

## Syntax

```sqf
control ctSetRowTemplate config
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
_control ctSetRowTemplate _configPath;
```

## See also

[ctAddRow](../commands/ctAddRow.md) · [ctAddHeader](../commands/ctAddHeader.md) · [ctClear](../commands/ctClear.md) · [ctCurSel](../commands/ctCurSel.md) · [ctRowControls](../commands/ctRowControls.md) · [ctHeaderControls](../commands/ctHeaderControls.md) · [ctRowCount](../commands/ctRowCount.md) · [ctHeaderCount](../commands/ctHeaderCount.md) · [ctSetCurSel](../commands/ctSetCurSel.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) · [ctSetHeaderTemplate](../commands/ctSetHeaderTemplate.md)

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