ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

PrintInfo.RepeatSplitHeaders Property

Gets or sets a value inidcating whether split captions should appear on each page.

[Visual Basic]

Public Property RepeatSplitHeaders As Boolean

[C#]

public bool RepeatSplitHeaders {get;set;}

[Delphi]

public property RepeatSplitHeaders: Boolean read get_RepeatSplitHeaders write set_RepeatSplitHeaders;

Remarks

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

If False (the default), split captions are printed on the first page only.

Note: If split captions are not set within the associated C1TrueDBGrid control, then the split headers are not printed, regardless of the setting of this property.

Example

The following code prints the split captions on each page:

·      Visual Basic

       ' Splits caption will be on every page.

       Me.C1TrueDBGrid1.PrintInfo.RepeatSplitsHeader = True

       ' Invoke print preview.

       Me.C1TrueDBGrid1.PrintInfo.PrintPreview()

·      C#

       // Splits caption will be on every page.

       this.c1TrueDBGrid1.PrintInfo.RepeatSplitsHeader = true;

       // Invoke print preview.

       this.c1TrueDBGrid1.PrintInfo.PrintPreview();

·      Delphi

       // Splits caption will be on every page.

       Self.C1TrueDBGrid1.PrintInfo.RepeatSplitsHeader := 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.