ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

PrintInfo.UseGridColors Property

Gets or sets a value indicating whether the grid's color scheme is translated to the print page.

[Visual Basic]

Public Property UseGridColors As Boolean

[C#]

public bool UseGridColors {get;set;}

[Delphi]

public property UseGridColors: Boolean read get_UseGridColors write set_UseGridColors;

Example

The following example translates the grid's color scheme to the print page:

·      Visual Basic

       Me.C1TrueDBGrid1.PrintInfo.UseGridColors = True

       ' Invoke print preview.

       Me.C1TrueDBGrid1.PrintInfo.PrintPreview()

·      C#

       this.c1TrueDBGrid1.PrintInfo.UseGridColors = true;

       // Invoke print preview.

       this.c1TrueDBGrid1.PrintInfo.PrintPreview();

·      Delphi

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