MultiRow Windows Forms > Developer's Guide > Using MultiRow > Print and Print Preview > 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.
You can set a page break position in the horizontal direction with the the Cell.PageBreak property.
This example sets the PageBreak property.
GcMultiRow1.Rows(0).Cells(2).PageBreak = True |
gcMultiRow1.Rows[0].Cells[2].PageBreak = true; |
You can set a page break position in the vertical direction with the Row.PageBreak property.
This example sets the PageBreak property.
GcMultiRow1.Rows(2).PageBreak = True |
gcMultiRow1.Rows[2].PageBreak = true; |
You can use the GcMultiRow.ShowPageBreaks property to display the page break preview.
This example sets the ShowPageBreaks property.
GcMultiRow1.ShowPageBreaks = True |
gcMultiRow1.ShowPageBreaks = true; |
You can set the border style of each page break with the GcMultiRow.PageBreakLines property.
This example sets the PageBreakLines property.
Imports GrapeCity.Win.MultiRow GcMultiRow1.PageBreakLines = New PageBreakLines(New Line(LineStyle.Dashed, Color.Red), New Line(LineStyle.Medium, Color.Green)) |
using GrapeCity.Win.MultiRow; gcMultiRow1.PageBreakLines = new PageBreakLines(new Line(LineStyle.Dashed, Color.Red), new Line(LineStyle.Medium, Color.Green)); |