DataGridExcelExportExtensions extension
Provides the extension methods for the SfDataGridState
to export the
SfDataGrid
to Excel.
- on
-
- SfDataGridState
Methods
-
exportToExcelWorkbook(
{List< DataGridRow> ? rows, bool exportStackedHeaders = true, bool exportTableSummaries = true, int defaultColumnWidth = 90, int defaultRowHeight = 49, bool exportRowHeight = true, bool exportColumnWidth = true, int startColumnIndex = 1, int startRowIndex = 1, List<String> excludeColumns = const <String>[], DataGridToExcelConverter? converter, DataGridCellExcelExportCallback? cellExport}) → Workbook -
Exports the
SfDataGrid
to ExcelWorkbook
. -
exportToExcelWorksheet(
Worksheet worksheet, {List< DataGridRow> ? rows, bool exportStackedHeaders = true, bool exportTableSummaries = true, int defaultColumnWidth = 90, int defaultRowHeight = 49, bool exportColumnWidth = true, bool exportRowHeight = true, int startColumnIndex = 1, int startRowIndex = 1, List<String> excludeColumns = const <String>[], DataGridToExcelConverter? converter, DataGridCellExcelExportCallback? cellExport}) → void -
Exports the
SfDataGrid
to the givenWorksheet
.