Gets or sets a value whether to print a grid if it has no data rows.
[Visual Basic]
Public Property PrintEmptyGrid As Boolean
[C#]
public bool PrintEmptyGrid {get;set;}
[Delphi]
public property PrintEmptyGrid: Boolean read get_PrintEmptyGrid write set_PrintEmptyGrid;
Example
The following code previews and prints the grid if it has no data rows:
Me.C1TrueDBGrid1.PrintInfo.PrintEmptyGrid = True
Me.C1TrueDBGrid1.PrintInfo.PrintPreview()
· C#
this.c1TrueDBGrid1.PrintInfo.PrintEmptyGrid = true;
this.c1TrueDBGrid1.PrintInfo.PrintPreview();
· Delphi
Self.C1TrueDBGrid1.PrintInfo.PrintEmptyGrid := True;
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. |