Lynn Emery

Lynn Emery

  • NA
  • 47
  • 56.7k

Printing a GridView header on each page print out.

Feb 28 2013 3:43 AM
Hi I am trying to print out a grid view, however the grid view has many rows and runs over multiple pages when printed. This looks unprofessional, therefore I want to add a page break to the page and add a gridview header to each printed page.

I understand that I have to apply a style to the Thread and TR elements and then add the style to the grid view, however I am unsure how to achieve this.

So far I have created a seperate style sheet which is referenced when the print button is pressed. In it I have the following code:
th {
    font-family:Arial;
    color:black;
   
}
thead {
    display:table-header-group;
}
tbody {
    display:table-row-group;

I am unsure how I apply the Th, Tbody and Thread to the grid view.

Thank you for your help in advance.