Category / Section
How to hide the Grid cell's borders, column and row headers while printing?
1 min read
You can hide the Grid cell's borders and column and row headers while printing by setting the following properties.
C#
//To hide cell borders and headers while printing. this.gridControl1.Model.Properties.PrintHorzLines = false; this.gridControl1.Model.Properties.PrintVertLines = false; this.gridControl1.Model.Properties.PrintFrame = false; this.gridControl1.Model.Properties.PrintColHeader = false; this.gridControl1.Model.Properties.PrintRowHeader = false;
VB
'To hide cell borders and headers while printing. Me.gridControl1.Model.Properties.PrintHorzLines = False Me.gridControl1.Model.Properties.PrintVertLines = False Me.gridControl1.Model.Properties.PrintFrame = False Me.gridControl1.Model.Properties.PrintColHeader = False Me.gridControl1.Model.Properties.PrintRowHeader = False
The following is the screenshot for print preview dialog after removing the CellBorder and Row and Column headers.
Sample Link: