Class GridModelExportExtensions
Inheritance
Namespace: Syncfusion.Windows.Controls.Grid.Converter
Assembly: Syncfusion.GridConverter.Wpf.dll
Syntax
public static class GridModelExportExtensions : Object
Methods
ExportToCSV(GridModel, GridRangeInfo, String)
Extension method for CSV export used for exporting the given grid range into a CSV file.
Declaration
public static void ExportToCSV(this GridModel gridModel, GridRangeInfo gridRange, string fileName)
Parameters
Type | Name | Description |
---|---|---|
GridModel | gridModel | GridModel Object. |
GridRangeInfo | gridRange | The grid range ro be exported. |
System.String | fileName | The name of the CSV file. |
ExportToCSV(GridModel, String)
Exports the content of GridControl into a CSV file.
Declaration
public static void ExportToCSV(this GridModel gridModel, string fileName)
Parameters
Type | Name | Description |
---|---|---|
GridModel | gridModel | GridModel Object. |
System.String | fileName | The name of the CSV file. |
ExportToExcel(GridModel, GridRangeInfo, ExcelEngine, Int32, IRange)
Declaration
public static void ExportToExcel(this GridModel gridModel, GridRangeInfo gridRange, ExcelEngine excelEngine, int sheetNumber, IRange excelRange)
Parameters
Type | Name | Description |
---|---|---|
GridModel | gridModel | |
GridRangeInfo | gridRange | |
ExcelEngine | excelEngine | |
System.Int32 | sheetNumber | |
IRange | excelRange |
ExportToExcel(GridModel, GridRangeInfo, ExcelEngine, Int32, IRange, GridCellExportToExcelHandler)
Extension method for GridModel used for export the selected grid cell data to excel sheet
Declaration
public static void ExportToExcel(this GridModel gridModel, GridRangeInfo gridRange, ExcelEngine excelEngine, int sheetNumber, IRange excelRange, GridCellExportToExcelHandler exportingHandler)
Parameters
Type | Name | Description |
---|---|---|
GridModel | gridModel | |
GridRangeInfo | gridRange | Range of the grid cell data |
ExcelEngine | excelEngine | ExcelEngine Object |
System.Int32 | sheetNumber | Work sheet number |
IRange | excelRange | Range of the excel sheet |
GridCellExportToExcelHandler | exportingHandler |
ExportToExcel(GridModel, GridRangeInfo, IWorksheet, IRange)
Declaration
public static void ExportToExcel(this GridModel gridModel, GridRangeInfo gridRange, IWorksheet workSheet, IRange excelRange)
Parameters
Type | Name | Description |
---|---|---|
GridModel | gridModel | |
GridRangeInfo | gridRange | |
IWorksheet | workSheet | |
IRange | excelRange |
ExportToExcel(GridModel, GridRangeInfo, IWorksheet, IRange, ExcelExportingOptions)
This method used to export the mentioned GridRange into the Excel Worksheet.
Declaration
public static void ExportToExcel(this GridModel gridModel, GridRangeInfo gridRange, IWorksheet workSheet, IRange excelRange, ExcelExportingOptions exportingOptions)
Parameters
Type | Name | Description |
---|---|---|
GridModel | gridModel | GirdModel object |
GridRangeInfo | gridRange | Range of the grid cell data |
IWorksheet | workSheet | Worksheet Object |
IRange | excelRange | Range of the Excelsheet |
ExcelExportingOptions | exportingOptions | exporting Options decides styles and format should be exported or not |
ExportToExcel(GridModel, GridRangeInfo, IWorksheet, IRange, GridCellExportToExcelHandler)
Extension method for GridModel used for export the selected grid cell data to excel sheet
Declaration
public static void ExportToExcel(this GridModel gridModel, GridRangeInfo gridRange, IWorksheet workSheet, IRange excelRange, GridCellExportToExcelHandler exportingHandler)
Parameters
Type | Name | Description |
---|---|---|
GridModel | gridModel | |
GridRangeInfo | gridRange | Range of the grid cell data |
IWorksheet | workSheet | |
IRange | excelRange | Range of the excel sheet |
GridCellExportToExcelHandler | exportingHandler |
ExportToExcel(GridModel, IWorksheet, ExcelExportingOptions)
This method used to export the specified Worksheet into the Excel Worksheet
Declaration
public static void ExportToExcel(this GridModel gridModel, IWorksheet workSheet, ExcelExportingOptions exportingOptions)
Parameters
Type | Name | Description |
---|---|---|
GridModel | gridModel | gridModel Object |
IWorksheet | workSheet | workSheet Object |
ExcelExportingOptions | exportingOptions | exporting Options decides styles and format should be exported or not |
ExportToExcel(GridModel, String, ExcelVersion)
Declaration
public static void ExportToExcel(this GridModel gridModel, string fileName, ExcelVersion excelVersion)
Parameters
Type | Name | Description |
---|---|---|
GridModel | gridModel | |
System.String | fileName | |
ExcelVersion | excelVersion |
ExportToExcel(GridModel, String, ExcelVersion, GridCellExportToExcelHandler)
Extension method for GridModel used for export the entire grid Cell data to excel sheet
Declaration
public static void ExportToExcel(this GridModel gridModel, string fileName, ExcelVersion excelVersion, GridCellExportToExcelHandler exportingHandler)
Parameters
Type | Name | Description |
---|---|---|
GridModel | gridModel | |
System.String | fileName | Name of the file for Save the information |
ExcelVersion | excelVersion | Version of the Excel Sheet |
GridCellExportToExcelHandler | exportingHandler |