[]
        
(Showing Draft Content)

C1.Win.C1FlexGrid.GridPrinter.Header

Header Property

Header

Gets or sets a string that contains the page headers.

Declaration
public string Header { get; set; }
Remarks

The string may be divided by tab characters into up to three sections. The sections are then left, center, and right-aligned at the top of each page.

The string may contain placeholders "{0}" and "{1}" which are replaced with the current page number and total page count.

Use the HeaderFont property to select the font used to render the header.

Examples

The code below specifies a right-aligned header with a "Page n of m" display using a 10-point Tahoma font.

_flex.Header = "\t\tPage {0} of {1}";
_flex.HeaderFont = new Font("Tahoma", 10);
_flex.PrintGrid("Header");