{"name":"ctSetRowTemplate","title":"ctSetRowTemplate","type":"command","url":"https://community.bistudio.com/wiki/ctSetRowTemplate","revid":310121,"updated":"2022-05-05T12:25:35Z","groups":["GUI Control - Controls Table"],"status":"ok","games":{"arma3":"1.70"},"since":"arma3 1.70","arma3_since":"1.70","locality":{"argument":"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.).","syntaxes":[{"syntax":"control ctSetRowTemplate config","params":[{"name":"control","type":"Control","type_expr":"Control"},{"name":"config","type":"Config","type_expr":"Config"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"control"},"right":{"text":"config"}}],"examples":[{"code":["_control ctSetRowTemplate _configPath;"]}],"see_also":["ctAddRow","ctAddHeader","ctClear","ctCurSel","ctRowControls","ctHeaderControls","ctRowCount","ctHeaderCount","ctSetCurSel","ctValue","ctSetData","ctData","ctFindRowHeader","ctFindHeaderRows","ctRemoveRows","ctRemoveHeaders","ctSetHeaderTemplate"]}