NetCharts Server .NET Toolkit

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

Converts a two-dimensional array to a DataTable using NSToolKit.DEFAULT_TABLE_NAME as the table name.

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

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.

Return Value

A DataTable named NetChartsServerData 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