This example shows how to achieve column grouping using a plugin.
Note that the js is not minified so it is readable. See column-header-group.js.