NetCharts Server .NET Toolkit

DataConversion.convertDataTableToCSV Method (DataTable, Boolean, String)

Converts a DataTable to a delimited set.

public static string convertDataTableToCSV(
   DataTable dt,
   bool includeColumnNames,
   string delimiter
);

Parameters

dt
The DataTable to convert to a delimited set.
includeColumnNames
Whether or not to include the DataTable column names as the first row of the delimited set.
delimiter
The delimiter to use within the delimited set.

Return Value

A delimited set populated from the DataTable.

Exceptions

Exception Type Condition
NSToolKitException Thrown when the DataTable is
null
or
Nothing
.

See Also

DataConversion Class | NetChartsServer Namespace | DataConversion.convertDataTableToCSV Overload List