I think you just need to write the title before rendering the gridview.
hw.Write("<H1>This is my title</H1>");
GridView1.RenderControl(hw);
solved How to create an invoice in asp.net
I think you just need to write the title before rendering the gridview.
hw.Write("<H1>This is my title</H1>");
GridView1.RenderControl(hw);
solved How to create an invoice in asp.net