Jeff
Alternatively if the view definition is a TableViewDefinition, yet the first page could fit multiple groups on it then try changing the following line:
if ((traverser.Current is GridViewGroupRowInfo) && pageNumber > 1 && !firstRow)
to
if ((traverser.Current is GridViewGroupRowInfo) && pageNumber >= 1 && !firstRow)
Cheers
Phil