GrapeCity MultiRow Windows Forms Documentation
Specify Print Range

In MultiRow, you can specify a print range for every single row.

Print All Rows

You can print all the displayed rows using the MultiRowPrintRange.AllRows option in the PrintSettings.PrintRange property.

Using Code

This example sets the PrintRange property to AllRows.

[VB]

GcMultiRow1.PrintSettings.PrintRange = GrapeCity.Win.MultiRow.MultiRowPrintRange.AllRows

[CS]

gcMultiRow1.PrintSettings.PrintRange = GrapeCity.Win.MultiRow.MultiRowPrintRange.AllRows;

Print Rows Selected by the User

You can print all the rows selected by the user with the MultiRowPrintRange.SelectedRows option in the PrintSettings.PrintRange property.

Print Selected Rows

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.

Print Current Row

You can print the current row (GcMultiRow.CurrentCellPosition.RowIndex) only by setting the PrintSettings.PrintRange property to MultiRowPrintRange.CurrentRow.

See Also

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options