{"name":"ctSetCurSel","title":"ctSetCurSel","type":"command","url":"https://community.bistudio.com/wiki/ctSetCurSel","revid":310076,"updated":"2022-05-05T12:25:08Z","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":"Selects the line with the given index. Will take only rows, but not headers into account. -1 deselects all. Returns Nothing.","syntaxes":[{"syntax":"control ctSetCurSel index","params":[{"name":"control","type":"Control","type_expr":"Control"},{"name":"index","type":"Number","type_expr":"Number"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"control"},"right":{"text":"index"}}],"examples":[{"code":["_control ctSetCurSel 0;"]}],"see_also":["ctAddRow","ctAddHeader","ctClear","ctCurSel","ctRowControls","ctHeaderControls","ctRowCount","ctHeaderCount","ctSetValue","ctValue","ctSetData","ctData","ctFindRowHeader","ctFindHeaderRows","ctRemoveRows","ctRemoveHeaders","ctSetRowTemplate","ctSetHeaderTemplate"]}