setColumnHidden

fun setColumnHidden(key: String, hidden: Boolean)(source)

Hides or shows one column, by DataTableHeader.key.

Showing a column whose header declares visible = false does nothing — see hiddenColumns. Hiding the column that has keyboard focus is safe: focus is held by key, so it simply stops drawing until the column comes back.