NetCharts Server .NET Toolkit

DataConversion.convertArrayToDataTable Method (Object[,], Boolean, String)

Converts a two-dimensional array to a DataTable.

public static DataTable convertArrayToDataTable(
   object[,] array,
   bool firstRowIsColumnNames,
   string tableName
);

Parameters

array
The array of data to convert to NCXML.
firstRowIsColumnNames
Whether the first row of data contains values to use as the column name of the DataTable.
tableName
The names of the DataTable. If tableName is "" the the name used will be NetChartsServerData.

Return Value

A DataTable populated from the two-dimensional array.

Exceptions

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

See Also

DataConversion Class | NetChartsServer Namespace | DataConversion.convertArrayToDataTable Overload List