Back to Devexpress

DataGridExportExtensions.ExportToImageAsync(DataGridView, String) Method

maui-devexpress-dot-maui-dot-datagrid-dot-datagridexportextensions-dot-exporttoimageasync-x28-devexpress-dot-maui-dot-datagrid-dot-datagridview-system-dot-string-x29.md

latest1.6 KB
Original Source

DataGridExportExtensions.ExportToImageAsync(DataGridView, String) Method

Exports DataGridView data to a PNG image with the specified path. You can use the ExportToImageAsync(DataGridView, String, ImageExportOptions) method overload to specify another image’s format.

Namespace : DevExpress.Maui.DataGrid

Assembly : DevExpress.Maui.DataGrid.Export.dll

NuGet Package : DevExpress.Maui.DataGrid.Export

Declaration

csharp
public static Task ExportToImageAsync(
    this DataGridView grid,
    string filePath
)

Parameters

NameTypeDescription
gridDataGridView

The exported DataGridView.

| | filePath | String |

The exported file’s full path and the name.

|

Returns

TypeDescription
Task

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

|

See Also

DataGridExportExtensions Class

DataGridExportExtensions Members

DevExpress.Maui.DataGrid Namespace