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
After:
Samples:
C#: Printing Column headers_CS
VB: Printing Column headers_VB