Skip to main content

GridControl.ShowRibbonPrintPreview() Method

Displays the Print Preview window with a Ribbon UI.

Namespace: DevExpress.XtraGrid

Assembly: DevExpress.XtraGrid.v23.2.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

public void ShowRibbonPrintPreview()

Remarks

The ShowRibbonPrintPreview method shows a print preview of the data displayed by the Grid Control’s GridControl.DefaultView (the GridControl.MainView or the currently maximized detail View). The opened print preview window is built using a Ribbon UI. To display the Print Preview window with a Bars UI, use the GridControl.ShowPrintPreview method.

The grid control can be previewed and printed if the XtraPrinting Library is available. To check if printing and previewing the grid control is allowed, use the GridControl.IsPrintingAvailable property.

To print the data without showing a print preview, use GridControl.Print or GridControl.PrintDialog.

See Printing Overview to learn more.

See Also