Articles in this section
Category / Section

What are the printing options available in WinForms GridGroupingControl?

4 mins read

Printing


The Essential WinForms GridGroupingControl provides support to print column headers, row headers, horizontal and vertical lines through corresponding properties used in the control. 

 

Printing Column and Row Headers

In order to print the column header and row header, the PrintColumnHeader and PrintRowHeader property can be used respectively.

 

C#

//To print with column headers
this.gridGroupingControl1.PrintColumnHeader = true;
 
//To print with row headers
this.gridGroupingControl1.PrintRowHeader = true;

VB

'To print with column headers
Me.gridGroupingControl1.PrintColumnHeader = True
 
'To print with row headers
Me.gridGroupingControl1.PrintRowHeader = True

Printing Horizontal and Vertical Lines

In order to print the horizontal and vertical lines of the grid, the PrintHorizontalLines and PrintVerticalLines property can be used.

 

C#

//To print horizontal lines
this.gridGroupingControl1.PrintHorizontalLines = true;
 
//To print vertical lines
this.gridGroupingControl1.PrintVerticalLines = true;

VB

'To print horizontal lines
Me.gridGroupingControl1.PrintHorizontalLines = True
 
'To print vertical lines
Me.gridGroupingControl1.PrintVerticalLines = True

The screenshot below illustrates the printing of row and column headers, as well as horizontal and vertical lines.

 Show the print preview dialog window


Samples:

C#: PrintingOptions_CS

VB: PrintingOptions_VB

 

Conclusion


I hope you enjoyed learning about the printing options available in GridGroupingControl
.

You can refer to our WinForms GridGroupingControl  feature tour page to know about its other groundbreaking feature representations and WinForms GridGroupingControl documentation, and how to quickly get started for configuration specifications.


For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.


If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied