menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridDataControlExportExtensions - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class GridDataControlExportExtensions

    Extensions class for GridDataControl

    Inheritance
    System.Object
    GridDataControlExportExtensions
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.Windows.Controls.Grid.Converter
    Assembly: Syncfusion.GridConverter.Wpf.dll
    Syntax
    public static class GridDataControlExportExtensions

    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 true [hide expander and indent].

    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 true [hide expander and indent].

    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
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved