ViewCellFormatting event is fired for all cells. If you want to format the grouping row or the header cells, you should use this event.
CellFormatting is called for each column in your row
Here's some code from a recent project. The idea is to show you how to format group and detail cells at the same time. This could also be used to format header cells.