Nevron .NET Vision
Chart for .NET / User's Guide / Data Manipulation / Exporting / Exporting to DataTable

In This Topic
    Exporting to DataTable
    In This Topic

    The series data can be exported to a DataTable object. This functionality is exposed by the ExportToDataTable method of the NDataSeriesCollection class. The method receives one argument - the name of the newly created data table object. The returned data table contains one column for each data series contained in the collection. The columns are named after the data series they represent.

    The following example creates a data table from the Values, XValues and Sizes data series of a Bubble Series.

    C#
    Copy Code
    NDataSeriesCollection colDataSeries = new NDataSeriesCollection();
    
    colDataSeries.Add(bubbleSeries.Values);
    colDataSeries.Add(bubbleSeries.XValues);
    colDataSeries.Add(bubbleSeries.Sizes);
    
    DataTable datatable = colDataSeries.ExportToDataTable("MyTableName");
    
    Visual Basic
    Copy Code
    Dim colDataSeries As NDataSeriesCollection =  New NDataSeriesCollection()
    
    colDataSeries.Add(bubbleSeries.Values)
    colDataSeries.Add(bubbleSeries.XValues)
    colDataSeries.Add(bubbleSeries.Sizes)
    
    Dim datatable As DataTable =  colDataSeries.ExportToDataTable("MyTableName")
    
     Related Examples
    Windows forms: All Examples\Data Manipulation\Exporting\Export to DataTable
    See Also