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