nithin4
asked on
Unhide Gridview row on print
Hi,
I have a Gridview on my aspx page. I repeat the header row after 8 rows and set Gridview RepeatedHeaderRow.Visible = false. I dont want to show the repeated header on the web page, but I want to show the repeated header row on print.
Thanks to the gurus in advance
I have a Gridview on my aspx page. I repeat the header row after 8 rows and set Gridview RepeatedHeaderRow.Visible = false. I dont want to show the repeated header on the web page, but I want to show the repeated header row on print.
Thanks to the gurus in advance
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
int hdrCount = GridView.Rows.Count() / 9;
for (i = 1; i <= hdrCount; i++)
{
int z = i * 9;
GridView.Rows(z).Visible = true;
}