How do I get the This should do it: Create a function and use that function in your The function is: The GridView control to render the tags? I know .UseAccessibleHeaders makes it p
gv.HeaderRow.TableSection = TableRowSection.TableHeader;
PageLoad event like this:private void MakeGridViewPrinterFriendly(GridView gridView) {
if (gridView.Rows.Count > 0) {
gridView.UseAccessibleHeader = true;
gridView.HeaderRow.TableSection = TableRowSection.TableHeader;
}
}
PageLoad event is:protected void Page_Load(object sender, EventArgs e) {
if (!IsPostBack)
{
MakeGridViewPrinterFriendly(grddata);
}
}