{"name":"tvSetSelected","title":"tvSetSelected","type":"command","url":"https://community.bistudio.com/wiki/tvSetSelected","revid":378326,"updated":"2026-04-02T16:30:29Z","groups":["GUI Control - Tree View"],"status":"ok","games":{"arma3":"2.02"},"since":"arma3 2.02","arma3_since":"2.02","description":"Sets the selection state of given treeview item in multi-select control.","syntaxes":[{"syntax":"control tvSetSelected [path, selected]","params":[{"name":"control","type":"Control","type_expr":"Control"},{"name":"path","type":"Tree View Path","type_expr":"Tree View Path"},{"name":"selected","type":"Boolean","type_expr":"Boolean"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"control"},"right":{"text":"[path, selected]"}}],"examples":[{"code":["_control tvSetSelected [[0], true];"]}],"see_also":["tvSelection","tvIsSelected"]}