Skip to main content

Copy-to-Clipboard

Command Description

Copy the content of a datatable to clipboard

Command Prototype

Datatable.DataTableToClipboard(dtTable)

Parameter Description

ParameterRequiredTypeDefaultDescription
dtTableTrueexpressionobjDatatableThe data table to be filtered

Demo

aryData = [["a", 1], ["b", 2], ["c", 3], ["d", 1]] 
aryColumns = ["letter", "number"]
objDatatable = Datatable.BuildDataTable(aryData,aryColumns)

Datatable.DataTableToClipboard(objDatatable)