NetCharts Server .NET Toolkit

DataConversion.convertDataTableToArray Method 

Converts a DataTable to a two-dimensional array.

public static object[,] convertDataTableToArray(
   DataTable dt,
   bool includeColumnNames
);

Parameters

dt
The DataTable to convert to a two-dimensional array.
includeColumnNames
Whether or not to include the DataTable column names as the first row of the array.

Return Value

A two-dimensional array populated from the DataTable

Exceptions

Exception TypeCondition
NSToolKitExceptionThrown when the DataTable is
null
or
Nothing
.

See Also

DataConversion Class | NetChartsServer Namespace