Class GridDataControlExportExtensions
Extensions class for GridDataControl
Inheritance
Namespace: Syncfusion.Windows.Controls.Grid.Converter
Assembly: Syncfusion.GridConverter.Wpf.dll
Syntax
public static class GridDataControlExportExtensions : Object
Methods
ExportToCSV(GridDataTableModel, GridRangeInfo, String)
Exports to CSV.
Declaration
public static void ExportToCSV(this GridDataTableModel gridModel, GridRangeInfo gridRange, string fileName)
Parameters
Type | Name | Description |
---|---|---|
GridDataTableModel | gridModel | The grid model. |
GridRangeInfo | gridRange | The grid range. |
System.String | fileName | Name of the file. |
ExportToCSV(GridDataTableModel, GridRangeInfo, String, String)
Exports to CSV.
Declaration
public static void ExportToCSV(this GridDataTableModel gridModel, GridRangeInfo gridRange, string fileName, string delimiter)
Parameters
Type | Name | Description |
---|---|---|
GridDataTableModel | gridModel | The grid model. |
GridRangeInfo | gridRange | The grid range. |
System.String | fileName | Name of the file. |
System.String | delimiter | The delimiter. |
ExportToCSV(GridDataTableModel, String)
Exports to CSV.
Declaration
public static void ExportToCSV(this GridDataTableModel gridModel, string fileName)
Parameters
Type | Name | Description |
---|---|---|
GridDataTableModel | gridModel | The grid model. |
System.String | fileName | Name of the file. |
ExportToCSV(GridDataTableModel, String, String)
Exports to CSV.
Declaration
public static void ExportToCSV(this GridDataTableModel gridModel, string fileName, string delimiter)
Parameters
Type | Name | Description |
---|---|---|
GridDataTableModel | gridModel | The grid model. |
System.String | fileName | Name of the file. |
System.String | delimiter | The delimiter. |
ExportToExcel(GridDataControl, GridRangeInfo, IWorkbook, GridCellExportToExcelHandler, GridModelExportToExcelHandler, Boolean)
Declaration
public static void ExportToExcel(this GridDataControl gridDataControl, GridRangeInfo gridRange, IWorkbook workbook, GridCellExportToExcelHandler exportingHandler, GridModelExportToExcelHandler modelExportingHandler, bool useExcelExpanderAndIndentColumn)
Parameters
Type | Name | Description |
---|---|---|
GridDataControl | gridDataControl | |
GridRangeInfo | gridRange | |
IWorkbook | workbook | |
GridCellExportToExcelHandler | exportingHandler | |
GridModelExportToExcelHandler | modelExportingHandler | |
System.Boolean | useExcelExpanderAndIndentColumn |
ExportToExcel(GridDataControl, GridRangeInfo, IWorksheet, IRange)
Exports to excel.
Declaration
public static void ExportToExcel(this GridDataControl gridDataControl, GridRangeInfo gridRange, IWorksheet workSheet, IRange excelRange)
Parameters
Type | Name | Description |
---|---|---|
GridDataControl | gridDataControl | The grid data control. |
GridRangeInfo | gridRange | The grid range. |
IWorksheet | workSheet | The work sheet. |
IRange | excelRange | The excel range. |
ExportToExcel(GridDataControl, GridRangeInfo, IWorksheet, IRange, GridCellExportToExcelHandler)
Exports to excel.
Declaration
public static void ExportToExcel(this GridDataControl gridDataControl, GridRangeInfo gridRange, IWorksheet workSheet, IRange excelRange, GridCellExportToExcelHandler exportingHandler)
Parameters
Type | Name | Description |
---|---|---|
GridDataControl | gridDataControl | The grid data control. |
GridRangeInfo | gridRange | The grid range. |
IWorksheet | workSheet | The work sheet. |
IRange | excelRange | The excel range. |
GridCellExportToExcelHandler | exportingHandler | The exporting handler. |
ExportToExcel(GridDataControl, GridRangeInfo, String, ExcelVersion)
Exports to excel.
Declaration
public static void ExportToExcel(this GridDataControl gridDataControl, GridRangeInfo gridRange, string fileName, ExcelVersion excelVersion)
Parameters
Type | Name | Description |
---|---|---|
GridDataControl | gridDataControl | The grid data control. |
GridRangeInfo | gridRange | The grid range. |
System.String | fileName | Name of the file. |
ExcelVersion | excelVersion | The excel version. |
ExportToExcel(GridDataControl, GridRangeInfo, String, ExcelVersion, GridCellExportToExcelHandler)
Exports to excel.
Declaration
public static void ExportToExcel(this GridDataControl gridDataControl, GridRangeInfo gridRange, string fileName, ExcelVersion excelVersion, GridCellExportToExcelHandler exportingHandler)
Parameters
Type | Name | Description |
---|---|---|
GridDataControl | gridDataControl | The grid data control. |
GridRangeInfo | gridRange | The grid range. |
System.String | fileName | Name of the file. |
ExcelVersion | excelVersion | The excel version. |
GridCellExportToExcelHandler | exportingHandler | The exporting handler. |
ExportToExcel(GridDataControl, String, ExcelVersion)
Exports to excel.
Declaration
public static void ExportToExcel(this GridDataControl gridDataControl, string fileName, ExcelVersion excelVersion)
Parameters
Type | Name | Description |
---|---|---|
GridDataControl | gridDataControl | The grid data control. |
System.String | fileName | Name of the file. |
ExcelVersion | excelVersion | The excel version. |
ExportToExcel(GridDataControl, String, ExcelVersion, GridCellExportToExcelHandler)
Exports to excel.
Declaration
public static void ExportToExcel(this GridDataControl gridDataControl, string fileName, ExcelVersion excelVersion, GridCellExportToExcelHandler exportingHandler)
Parameters
Type | Name | Description |
---|---|---|
GridDataControl | gridDataControl | The grid data control. |
System.String | fileName | Name of the file. |
ExcelVersion | excelVersion | The excel version. |
GridCellExportToExcelHandler | exportingHandler | The exporting handler. |
ExportToExcel(GridDataControl, String, ExcelVersion, GridCellExportToExcelHandler, GridModelExportToExcelHandler, Boolean)
Exports to excel.
Declaration
public static void ExportToExcel(this GridDataControl gridDataControl, string fileName, ExcelVersion excelVersion, GridCellExportToExcelHandler exportingHandler, GridModelExportToExcelHandler modelExportingHandler, bool useExcelExpanderAndIndentColumn)
Parameters
Type | Name | Description |
---|---|---|
GridDataControl | gridDataControl | The grid data control. |
System.String | fileName | Name of the file. |
ExcelVersion | excelVersion | The excel version. |
GridCellExportToExcelHandler | exportingHandler | The exporting handler. |
GridModelExportToExcelHandler | modelExportingHandler | The model exporting handler. |
System.Boolean | useExcelExpanderAndIndentColumn | if set to |
ExportToExcel(GridDataControl, String, ExcelVersion, GridCellExportToExcelHandler, Boolean)
Exports to excel.
Declaration
public static void ExportToExcel(this GridDataControl gridDataControl, string fileName, ExcelVersion excelVersion, GridCellExportToExcelHandler exportingHandler, bool useExcelExpanderAndIndentColumn)
Parameters
Type | Name | Description |
---|---|---|
GridDataControl | gridDataControl | The grid data control. |
System.String | fileName | Name of the file. |
ExcelVersion | excelVersion | The excel version. |
GridCellExportToExcelHandler | exportingHandler | The exporting handler. |
System.Boolean | useExcelExpanderAndIndentColumn | if set to |
ExportToExcel(GridDataControl, String, ExcelVersion, Boolean)
Exports to excel.
Declaration
public static void ExportToExcel(this GridDataControl gridDataControl, string fileName, ExcelVersion excelVersion, bool useExcelExpanderAndIndentColumn)
Parameters
Type | Name | Description |
---|---|---|
GridDataControl | gridDataControl | The grid data control. |
System.String | fileName | Name of the file. |
ExcelVersion | excelVersion | The excel version. |
System.Boolean | useExcelExpanderAndIndentColumn |
ExportToExcel(GridDataControl, String, ExcelVersion, Boolean, GridModelExportToExcelHandler)
Exports to excel.
Declaration
public static void ExportToExcel(this GridDataControl gridDataControl, string fileName, ExcelVersion excelVersion, bool useExcelExpanderAndIndentColumn, GridModelExportToExcelHandler modelExportingHandler)
Parameters
Type | Name | Description |
---|---|---|
GridDataControl | gridDataControl | The grid data control. |
System.String | fileName | Name of the file. |
ExcelVersion | excelVersion | The excel version. |
System.Boolean | useExcelExpanderAndIndentColumn | |
GridModelExportToExcelHandler | modelExportingHandler | The model exporting handler. |
ExportToExcel(GridDataControl, String, ExcelVersion, List<String>, Boolean)
Exports to excel.
Declaration
public static void ExportToExcel(this GridDataControl gridDataControl, string fileName, ExcelVersion excelVersion, List<string> excludedColumns, bool useExcelExpanderAndIndentColumn)
Parameters
Type | Name | Description |
---|---|---|
GridDataControl | gridDataControl | The grid data control. |
System.String | fileName | Name of the file. |
ExcelVersion | excelVersion | The excel version. |
System.Collections.Generic.List<System.String> | excludedColumns | |
System.Boolean | useExcelExpanderAndIndentColumn |