Articles in this section
Category / Section

How to repeat the Headers in all pages while printing grid in WinForms GridControl?

1 min read

Repeat the header

In order to repeat the headers to all the page while printing, the FrozenCount property can be used. This property can be reset to default value whether it is not needed.

C#

//Add Custom Headers.
gridControl1.Rows.HeaderCount = 3;
 
//To repeat the all custom headers to all the pages in printing.
gridControl1.Rows.FrozenCount = 3;
 

 

VB

'Add Custom Headers.
gridControl1.Rows.HeaderCount = 3
 
'To repeat the all custom headers to all the pages in printing.
gridControl1.Rows.FrozenCount = 3

 

Screenshot

Before

Before add the repeating header to the grid

After:

After add the repeating header to the grid

Samples:

C#: Printing Column headers_CS

VB: Printing Column headers_VB

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied