Skip to main content
A newer version of this page is available. .

GridControl.ExportToXlsx(Stream, XlsxExportOptions) Method

Exports the data the GridControl.DefaultView (GridControl.MainView or the currently maximized detail View) displays to the specified stream in XLSX format using the specified options.

Namespace: DevExpress.XtraGrid

Assembly: DevExpress.XtraGrid.v21.2.dll

NuGet Packages: DevExpress.Win.Design, DevExpress.Win.Grid

Declaration

public void ExportToXlsx(
    Stream stream,
    XlsxExportOptions options
)

Parameters

Name Type Description
stream Stream

A Stream object to which data is exported.

options XlsxExportOptions

An object that specifies export customization options and events. In data-aware export mode, initialize the parameter with a XlsxExportOptionsEx object. In WYSIWYG export mode, initialize the parameter with a XlsxExportOptions object.

Remarks

See Export to XLS and XLSX Formats to learn more.

See Also