Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DataViewBase.Print() Method

In This Article

Invokes the Print dialog and prints the control’s data.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v24.2.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public void Print()

#Remarks

This method invokes the standard Print dialog that allows users to print the control’s data, select a printer, specify the number of pages and copies, and so on. To print the control’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 control’s data only if the DXPrinting Library is available.

Refer to the following topics for more information on how to print data:

See Also