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

DataGridExportExtensions.ExportToPdfAsync(DataGridView, String, PdfExportOptions) Method

Exports DataGridView data to PDF format with the specified path and export options.

Namespace: DevExpress.Maui.DataGrid

Assembly: DevExpress.Maui.DataGrid.Export.dll

NuGet Package: DevExpress.Maui.DataGrid.Export

#Declaration

C#
public static Task ExportToPdfAsync(
    this DataGridView grid,
    string filePath,
    PdfExportOptions options
)

#Parameters

Name Type Description
grid DataGridView

The exported DataGridView.

filePath String

The exported PDF file’s full path and the name.

options PdfExportOptions

PDF export settings.

#Returns

Type Description
Task

A task that allows you to wait for the export is ended.

See Also