alexa
menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class GridCsvExport

    This class exports the PivotGrid values to Comma Separated Values format. Also we support to export more than one PivotGrid control in a single instance.

    Inheritance
    System.Object
    GridCsvExport
    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.PivotGrid.Converter
    Assembly: Syncfusion.PivotGridConverter.Wpf.dll
    Syntax
    public class GridCsvExport

    Constructors

    GridCsvExport(PivotGridControl)

    Initializes a new instance of the GridCsvExport class.

    Declaration
    public GridCsvExport(PivotGridControl pivotGridControl)
    Parameters
    Type Name Description
    PivotGridControl pivotGridControl

    This parameter holds the PivotGrid control object which is utilized for CSV exporting.

    GridCsvExport(PivotGridControl[])

    Initializes a new instance of the GridCsvExport class.

    Declaration
    public GridCsvExport(PivotGridControl[] pivotGridControl)
    Parameters
    Type Name Description
    PivotGridControl[] pivotGridControl

    This parameter holds the PivotGrid control object which is utilized for CSV exporting.

    Exceptions
    Type Condition
    System.ArgumentNullException

    Throws exception if the PivotGrid control is null or its length become zero.

    Fields

    Delimiter

    Property to define the specific delimiter ',' to separates the PivotGrid values.

    Declaration
    public string Delimiter
    Field Value
    Type
    System.String

    Properties

    GridControl

    Gets or sets the PivotGrid control.

    Declaration
    public PivotGridControl GridControl { get; set; }
    Property Value
    Type
    PivotGridControl

    Methods

    Export(String)

    Exports the PivotGrid control to CSV format with the specified file name.

    Declaration
    public void Export(string fileName)
    Parameters
    Type Name Description
    System.String fileName

    Provides specific file name to the exported CSV document.

    ExportToCsv(PivotGridControl, String)

    Exports the PivotGrid to CSV format with the specified file name.

    Declaration
    public void ExportToCsv(PivotGridControl pivotGridControl, string fileName)
    Parameters
    Type Name Description
    PivotGridControl pivotGridControl

    This parameter holds PivotGrid control object.

    System.String fileName

    Provides specific file name to the exported CSV document.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved