I'd like to have a table where columns can be grouped with some meta attribute and their visibility toggled with buttons/checkboxes above the table. For example:
=============
[Button A] [Button B]
------------------
Col 0 (Fixed) | Col 1 (A) | Col 2 (A) | Col 3 (B) | Col 4 (B) | Col 5 (B)
=============
In the example above, Column 0 is fixed and always visible. Toggling Button A would hide/show Columns 1 and 2, and togling Button B would hide/show Columns 3,4,5.
What's the best way to achieve this?