ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

PrintInfo.ShowSelection Property

Gets or sets a value indicating whether selected cells will be highlighted when previewing or printing.

[Visual Basic]

Public Property ShowSelection As Boolean

[C#]

public bool ShowSelection {get;set;}

[Delphi]

public property ShowSelection: Boolean read get_ShowSelection write set_ShowSelection;

Remarks

The default value for this property is True.

Example

The following code does not show highlighted cells when previewing or printing:

·      Visual Basic

       Me.C1TrueDBGrid1.PrintInfo.ShowSelection = False

       Me.C1TrueDBGrid1.PrintInfo.PrintPreview()

·      C#

       this.c1TrueDBGrid1.PrintInfo.ShowSelection = false;

       this.c1TrueDBGrid1.PrintInfo.PrintPreview();

·      Delphi

       Self.C1TrueDBGrid1.PrintInfo.ShowSelection := False;

       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.