ComponentOne FlexGrid for WinForms
Header Property

C1.Win.C1FlexGrid Namespace > GridPrinter Class : Header Property
Gets or sets a string that contains the page headers.
Public Property Header As String
public string Header {get; set;}

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.

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);
See Also


GridPrinter Class
GridPrinter Members