Gets or sets a value indicating whether the grid caption should appear on each page.
[Visual Basic]
Public Property RepeatGridHeader As Boolean
[C#]
public bool RepeatGridHeader {get;set;}
[Delphi]
public property RepeatGridHeader: Boolean read get_RepeatGridHeader write set_RepeatGridHeader;
Remarks
If True, the grid caption is printed at the top of each physical page.
If False (the default), the grid caption is printed on the first page only.
Note: If the C1TrueDBGrid.Caption property of the associated C1TrueDBGrid control is not set, then the grid header is not printed, regardless of the setting of this property.
Example
The following example prints the grid caption on each page:
' Header for the entire grid.
Me.C1TrueDBGrid1.Caption = "Customers Table"
' Grid caption will be on every page.
Me.C1TrueDBGrid1.PrintInfo.RepeatGridHeader = True
' Invoke print preview.
Me.C1TrueDBGrid1.PrintInfo.PrintPreview()
· C#
// Header for the entire grid.
this.c1TrueDBGrid1.Caption = "Customers Table";
// Grid caption will be on every page.
this.c1TrueDBGrid1.PrintInfo.RepeatGridHeader = true;
// Invoke print preview.
this.c1TrueDBGrid1.PrintInfo.PrintPreview();
· Delphi
// Header for the entire grid.
Self.C1TrueDBGrid1.Caption := 'Customers Table'
// Grid caption will be on every page.
Self.C1TrueDBGrid1.PrintInfo.RepeatGridHeader := True;
// Invoke print preview.
Self.C1TrueDBGrid1.PrintInfo.PrintPreview;
See Also
PrintInfo Class | PrintInfo Members | C1.Win.C1TrueDBGrid Namespace
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |