Fired while printing the control to set repeating header rows.
Syntax
Private Sub VSFlexGrid_GetHeaderRow( ByVal Row As Long, HeaderRow As Long)
Remarks
This event is fired while the control is being printed, to create a headers at the top of each page.
While printing, the GetHeaderRow event is fired at the beginning of each page (except the first) and you can return the number of a row that should be used as a header on each page. This is especially useful for printing complex reports that require control over page breaks.
The parameters for the GetHeaderRow event are described below:
Row As Long
This parameter contains the number of the row that will be the first on a page.
HeaderRow As Long
This parameter is initially set to -1, meaning no heading row is needed. If you want a header row on the page, set HeaderRow to the number of a row to be used as the header.
The control may be printed with the PrintGrid method or with a VSPrinter control. The advantage of using the VSPrinter control is that it provides print previewing, the ability to integrate many grids and other graphical elements on a single document, and complete control over the printer. The VSPrinter control is available from ComponentOne as a separate product.