Any potential solution is going to be highly dependant on the source of your data. For example, if you're pulling the data from a database, that could be a better place to aggregate, if you're using an object collection it may well be better handled there.
There are plenty of rusults if you google
gridview grouping[
^]