DataGridExportExtensions.ExportToImageAsync(DataGridView, String, ImageExportOptions) Method
Exports DataGridView data to a PNG
image with the specified path and export options. You can use the options
parameter to specify the image’s format.
Namespace: DevExpress.Maui.DataGrid
Assembly: DevExpress.Maui.DataGrid.Export.dll
NuGet Package: DevExpress.Maui.DataGrid.Export
Declaration
public static Task ExportToImageAsync(
this DataGridView grid,
string filePath,
ImageExportOptions options
)
Parameters
Name | Type | Description |
---|---|---|
grid | DataGridView | The exported DataGridView. |
filePath | String | The exported file’s full path and the name. |
options | ImageExportOptions | Export settings. |
Returns
Type | Description |
---|---|
Task | A task that allows you to wait for the export is ended. |
See Also