MultiRow Windows Forms > Developer's Guide > Using MultiRow > Print and Print Preview > Specify Print Range |
In MultiRow, you can specify a print range for every single row.
You can print all the displayed rows using the MultiRowPrintRange.AllRows option in the PrintSettings.PrintRange property.
This example sets the PrintRange property to AllRows.
GcMultiRow1.PrintSettings.PrintRange = GrapeCity.Win.MultiRow.MultiRowPrintRange.AllRows |
gcMultiRow1.PrintSettings.PrintRange = GrapeCity.Win.MultiRow.MultiRowPrintRange.AllRows; |
You can print all the rows selected by the user with the MultiRowPrintRange.SelectedRows option in the PrintSettings.PrintRange property.
You can print the range of rows specified by the StartRow and EndRow options by setting the PrintSettings.PrintRange property to MultiRowPrintRange.SomeRows. The StartRow option can be set using PrintSettings.FromRow and the EndRow option can be set with PrintSettings.ToRow.
You can print the current row (GcMultiRow.CurrentCellPosition.RowIndex) only by setting the PrintSettings.PrintRange property to MultiRowPrintRange.CurrentRow.