Skip to main content

DataGridExportExtensions.ExportToImageAsync Method

Name Parameters Description
ExportToImageAsync(DataGridView, Stream, ImageExportOptions) static grid, stream, options Exports DataGridView data to a stream with the specified export options. You can use the options parameter to specify the image’s format.
ExportToImageAsync(DataGridView, Stream) static grid, stream Exports DataGridView data to a stream with the specified export options. You can use the ExportToImageAsync(DataGridView, Stream, ImageExportOptions) method overload to specify another image’s format.
ExportToImageAsync(DataGridView, String, ImageExportOptions) static grid, filePath, options 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.
ExportToImageAsync(DataGridView, String) static grid, filePath 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.