NetCharts Server .NET Toolkit

DataConversion.convertCSVToDataTable Method (String, Boolean, String, String)

Converts a delimited set to a DataTable.

public static DataTable convertCSVToDataTable(
   string csv,
   bool firstRowIsColumnNames,
   string tableName,
   string delimiter
);

Parameters

csv
The delimited set to convert to a two-dimensional array.
firstRowIsColumnNames
Whether the first row of data contains values to use as the column names of the DataTable.
tableName
The name of the DataTable. If tableName is "" the the name used will be NetChartsServerData.
delimiter
The delimiter used within the delimited set.

Return Value

A DataTable populated from the delimited set.

See Also

DataConversion Class | NetChartsServer Namespace | DataConversion.convertCSVToDataTable Overload List