GridControl.ExportToXlsx(Stream, XlsxExportOptions) Method
In This Article
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.v24.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 | Xlsx |
An object that specifies export customization options and events. In data-aware export mode, initialize the parameter with a Xlsx |
#Remarks
See Export to XLS and XLSX Formats to learn more.
See Also