GrapeCity MultiRow Windows Forms Documentation
Specifying the Page Break Position

In MultiRow, there are two ways of setting a page break at any position, one is using the automatic page break and the other is with the Cell.PageBreak property. You can specify a page break position for every single row in MultiRow.

Setting a Page Break Position in the Horizontal Direction

You can set a page break position in the horizontal direction with the the Cell.PageBreak property.

Using Code

This example sets the PageBreak property.

[VB]

GcMultiRow1.Rows(0).Cells(2).PageBreak = True

[CS]

gcMultiRow1.Rows[0].Cells[2].PageBreak = true;

Setting a Page Break Position in the Vertical Direction

You can set a page break position in the vertical direction with the Row.PageBreak property.

Using Code

This example sets the PageBreak property.

[VB]

GcMultiRow1.Rows(2).PageBreak = True

[CS]

gcMultiRow1.Rows[2].PageBreak = true;

Displaying the Page Break Preview

You can use the GcMultiRow.ShowPageBreaks property to display the page break preview.

Using Code

This example sets the ShowPageBreaks property.

[VB]

GcMultiRow1.ShowPageBreaks = True

[CS]

gcMultiRow1.ShowPageBreaks = true;

Setting the Border Style of the Page Break Preview

You can set the border style of each page break with the GcMultiRow.PageBreakLines property.

Using Code

This example sets the PageBreakLines property.

[VB]

Imports GrapeCity.Win.MultiRow 
GcMultiRow1.PageBreakLines = New PageBreakLines(New Line(LineStyle.Dashed, Color.Red), New Line(LineStyle.Medium, Color.Green))

[CS]

using GrapeCity.Win.MultiRow; 
gcMultiRow1.PageBreakLines = new PageBreakLines(new Line(LineStyle.Dashed, Color.Red), new Line(LineStyle.Medium, Color.Green));
See Also

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options