Skip to main content

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.v23.2.dll

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

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