using customGroupFormat option

I would like to use the customGroupFormat but how do I get other column names from the xml file. I am grouping by Column 1 and want to include column 2.

The customGroupFormat method will receive values only for grouped column. ( values of other columns may be different for grouped rows, so they not available )