How can I print a grid with Page header?

You can change the header through

   GetParam( )->GetProperties( )->GetDataHeader( ).StoreStyleRowCol(1, 1, "Header");

Take also a look at gridsvw3.cpp (Welcome-Page in gridapp)