GridControl.ExportToExcel(Stream, ExportTarget) Method
In This Article
Exports data from the grid to the specified stream in the XLS, XLSX or CSV format.
Namespace: DevExpress.Mobile.DataGrid
Assembly: DevExpress.Mobile.Grid.v18.2.dll
#Declaration
public bool ExportToExcel(
Stream stream,
ExportTarget format
)
#Parameters
Name | Type | Description |
---|---|---|
stream | Stream | A Stream object, to which the created document is exported. |
format | Export |
An Export |
#Returns
Type | Description |
---|---|
Boolean | true, if export is successfully completed; otherwise, false. |
#Remarks
Important
This documentation topic describes legacy technology. We no longer develop new functionality for the Grid
To set options for exporting data from the grid to the XLS, XLSX or CSV format, use the GridControl.OptionsExportXls, GridControl.OptionsExportXlsx or GridControl.OptionsExportCsv property respectively.
See Also