Adding code so that clicking on a grouping title triggers the grouping action as well

I've updated the grouping code so that clicking on the grouping header triggers the grouping action as well as clicking on the icon does.

This was originally requested as issue 203.