Articles in this section
Category / Section

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

1 min read

The 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

 

Screenshot

When CenterHorizontal = true,

Show print preview of grid in center position

When CenterHorizontal = false,

 

Show the print preview of grid in left position

Samples:

C#: Print_LeftMargin CS

VB: Print_LeftMargin VB

Reference link: https://help.syncfusion.com/windowsforms/gridgrouping/printing

 

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