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.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.