Called by the framework to print the grid header.
Override this function in a derived class to customize header printing.