Refer to the following help document which explains on how to alter the group header text with a custom text. This should definitely help you out to achieve the required. Customizing GridGroupHeaderItem
The link you provided is not compltely helpful because, in the link UnitPrice and InStock are part of GroupByExpression.
I want access other cols like 'ProductName' inside