FlexGrid for WinForms | ComponentOne
C1.Win.C1FlexGrid Namespace / GridPrinter Class / Header Property
Example

In This Topic
    Header Property (GridPrinter)
    In This Topic
    Gets or sets a string that contains the page headers.
    Syntax
    'Declaration
     
    
    Public Property Header As String
    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.

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