Column filters in grid

I see in the grid example in the sampler -
A drop down menu with the column acting as a hide/show filter for grid columns.
How is that used? I saw no mention of that in the documentation.

You can make a column hideable by calling grid.getColumn(colId).setHidable(true); and if you want it hidden to start with just call column.setHidden(true); as well.