Skip to main content
A newer version of this page is available. .

DataViewBase.Print() Method

Invokes the Print dialog and prints the GridControl‘s data.

Namespace: DevExpress.Xpf.Grid

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Grid.Core, DevExpress.Wpf.Grid.Core

Declaration

public void Print()

Remarks

This method invokes the standard Print dialog that allows an end user to print the GridControl‘s data, select a printer, specify the number of pages and copies, and so on. To print the GridControl‘s data without a dialog, use the DataViewBase.PrintDirect method.

void Print_Data(object sender, RoutedEventArgs e) {
    view.Print();
}

Note

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