Back to Devexpress

DataGridExportExtensions.ExportToXlsxAsync(DataGridView, Stream) Method

maui-devexpress-dot-maui-dot-datagrid-dot-datagridexportextensions-dot-exporttoxlsxasync-x28-devexpress-dot-maui-dot-datagrid-dot-datagridview-system-dot-io-dot-stream-x29.md

latest1.4 KB
Original Source

DataGridExportExtensions.ExportToXlsxAsync(DataGridView, Stream) Method

Exports DataGridView data to a stream in XLSX format.

Namespace : DevExpress.Maui.DataGrid

Assembly : DevExpress.Maui.DataGrid.Export.dll

NuGet Package : DevExpress.Maui.DataGrid.Export

Declaration

csharp
public static Task ExportToXlsxAsync(
    this DataGridView grid,
    Stream stream
)

Parameters

NameTypeDescription
gridDataGridView

The exported DataGridView.

| | stream | Stream |

A stream to which the DataGridView sends the created file.

|

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