Articles in this section

How to print a grid from left margin in WinForms GridGroupingControl?

The WinForms GridGroupingControl can be printed from left margin by setting the CenterHorizontal property to false that is true by default. This property specifies when the Grid should be centered horizontally on the page while printing.


C#

//Print Grid from Left margin.
this.gridGroupingControl1.TableModel.Properties.CenterHorizontal = false; 

VB

'Print Grid from Left margin.
Me.gridGroupingControl1.TableModel.Properties.CenterHorizontal = False

The screenshot below illustrates the printing of a grid when the CenterHorizontal option is set to true.

 

Show print preview of grid in center position


The screenshot below illustrates the printing of a grid when the CenterHorizontal option is set to false.

 

Show the print preview of grid in left position


Samples:

C#: Print_LeftMargin CS

VB: Print_LeftMargin VB

 

Reference Link: Printing

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