Put lower in the head
<style media="print">
.MyCssClass thead
{
display: table-header-group;
}
</style>
Now put your gridview in a div and give the div the class name MyCssClass
GridView1_RowDataBound , Gridview.
private void MakeGridViewPrinterFriendly(GridView gridView)
{
if (gridView.Rows.Count > 0)
{
gridView.UseAccessibleHeader = true;
gridView.HeaderRow.TableSection = TableRowSection.TableHeader;
}
}
IE FF. Chrome.