A newer version of this page is available. Switch to the current version.

DataViewBase.ShowPrintPreviewDialog(Window) Method

Creates the print document from the DataViewBase and displays the modal Print Preview of the document using the specified owner.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v19.1.Core.dll


public void ShowPrintPreviewDialog(
    Window owner
Public Sub ShowPrintPreviewDialog(
    owner As Window


Name Type Description
owner Window

A Window instance specifying the owner of the Print Preview.


The Print Preview displays the grid as it will appear when printed. Note that the grid can be previewed and printed only if the DXPrinting Library is available.

To print the grid, use the DataViewBase.PrintDirect and DataViewBase.Print methods. To export the grid, use the appropriate ExportTo~ method (e.g. DataViewBase.ExportToHtml, DataViewBase.ExportToPdf, etc.)

See Also