This snippet was wonderful! Thank you! I have a couple of related questions:
1. How do I add a "main title" to only the first page of the Gridview when I print it?
2. How do I change the font on my Gridview printout?
I am a very new (and green) C# .NET and ASP.Net programmer so I really need some help.
Thank you!
You can put the GridView inside a Panel control.
Just above the GridView add the Title using Label
And then print the Panel instead of GridView by replacing
GridView1.RenderControl(hw);
with
Panel1.RenderControl(hw);
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.