ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

PrintInfo.RepeatColumnHeaders Property

Gets or sets a value indicating whether column headers should appear on each page.

[Visual Basic]

Public Property RepeatColumnHeaders As Boolean

[C#]

public bool RepeatColumnHeaders {get;set;}

[Delphi]

public property RepeatColumnHeaders: Boolean read get_RepeatColumnHeaders write set_RepeatColumnHeaders;

Remarks

If True (the default), column headers are printed at the top of each physical page below the split headers and grid header, if present.

If False, column headers are printed on the first page only.

Note: If the C1TrueDBGrid.ColumnHeaders property of the associated C1TrueDBGrid control is False, then column headers are not printed, regardless of the setting of this property.

Example

The following example prints the column header on each page:

·      Visual Basic

       ' Column headers will be on every page.

       Me.C1TrueDBGrid1.PrintInfo.RepeatColumnHeaders = True

       ' Invoke print preview.

       Me.C1TrueDBGrid1.PrintInfo.PrintPreview()

·      C#

       // Column headers will be on every page.

       this.c1TrueDBGrid1.PrintInfo.RepeatColumnHeaders = true;

       // Invoke print preview.

       this.c1TrueDBGrid1.PrintInfo.PrintPreview();

·      Delphi

       // Column headers will be on every page.

       Self.C1TrueDBGrid1.PrintInfo.RepeatColumnHeaders := True;

       // Invoke print preview.

       Self.C1TrueDBGrid1.PrintInfo.PrintPreview;

For an example using the RepeatColumnHeaders property, see Tutorial 15 - PrintInfo and Print Preview.

See Also

PrintInfo Class | PrintInfo Members | C1.Win.C1TrueDBGrid Namespace


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.