Hide column in GroupTable

Can we hide a column of grouptable programatically in the controller ?
Thnks

This should work::

myGroupTable.getColumn("id").setCollapsed(true);