Link to home
Start Free TrialLog in
Avatar of nithin4
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
Avatar of M3mph15
M3mph15
Flag of Australia image

Ok i haven't tested this but something like this should work:

    int hdrCount = GridView.Rows.Count() / 9;
    for (i = 1; i <= hdrCount; i++)
    {
        int z = i * 9;
        GridView.Rows(z).Visible = true;
     }
ASKER CERTIFIED SOLUTION
Avatar of nithin4
nithin4

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial