Xceed DataGrid for WPF v7.3 Documentation
Xceed.Wpf.DataGrid Assembly / Xceed.Wpf.DataGrid Namespace / DataGridControl Class / ExportToCsv Method / ExportToCsv(String) Method
A string representing the fully-qualified path of the file to which to export the content of the grid.


In This Topic
    ExportToCsv(String) Method
    In This Topic
    Exports the content of the grid in a CSV (comma-separated value) format to the specified file.
    Syntax
    'Declaration
     
    Public Overloads Sub ExportToCsv( _
       ByVal fileName As String _
    ) 
    'Usage
     
    Dim instance As DataGridControl
    Dim fileName As String
     
    instance.ExportToCsv(fileName)
    public void ExportToCsv( 
       string fileName
    )

    Parameters

    fileName
    A string representing the fully-qualified path of the file to which to export the content of the grid.
    Requirements

    Target Platforms: Windows 11, Windows, 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also