DataViewBase.ShowRibbonPrintPreview(FrameworkElement, String, String) Method

Creates the print document from the DataViewBase and displays the document's Print Preview with the Ribbon UI.

Namespace: DevExpress.Xpf.Grid

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


public void ShowRibbonPrintPreview(
    FrameworkElement owner,
    string documentName,
    string title
Public Sub ShowRibbonPrintPreview(
    owner As FrameworkElement,
    documentName As String,
    title As String


Name Type Description
owner FrameworkElement

The owner of the Print Preview.

documentName String

The name of the document displayed in the Print Preview.

title String

The title of the Print Preview.


The Print Preview displays the printed document's appearance. The Print Preview window allows end users to print the document and export it to a file in the required format.

void Print_Data(object sender, RoutedEventArgs e) {
    view.ShowRibbonPrintPreview(this, "ExamplePrint", "Print Preview");

You can preview, print, and export the GridControl's data only if the DXPrinting Library is available.

Refer to the Printing and Exporting section for more information on how to print and export the GridControl's data.

See Also