[]
        
(Showing Draft Content)

GrapeCity.CalcEngine.BuiltInRichValue.FromDataTable

FromDataTable Method

FromDataTable(DataTable, string, bool)

Instantiates an IRichValue instance for DataTable object.

Declaration
public static IRichValue FromDataTable(DataTable table, string defaultColumnName = null, bool showHeaders = false)
Public Shared Function FromDataTable(table As DataTable, Optional defaultColumnName As String = Nothing, Optional showHeaders As Boolean = False) As IRichValue
Parameters
Type Name Description
DataTable table

The data table.

string defaultColumnName

The default column of the table.

bool showHeaders

true if the table headers are spilled; otherwise, false.

Returns
Type Description
IRichValue

An IRichValue object represents data of a DataTable object.