Skip to main content

addDataAfter

Type​

property

Summary​

A method for adding data to the table.

Syntax​

set the addDataAfter of widget to <List>

Description​

Use the addDataAfter property to insert new data to the PolyGrid widget after the specified row by pgInternalPointer If you get the value of addDataAfter property it will always return empty.

Examples​

-- Adds two new items to the content of the table after the row 5
local tDataToAdd
put "One" into tDataToAdd[1]["col 1"]
put "Two" into tDataToAdd[2]["col 1"]
set the pgInternalPointer of widget "PolyGrid" to 5
set the addDataAfter of widget "PolyGrid" to tDataToAdd

Value​

NameTypeDescription

value

A number indexed array where each element corresponds to a row in the table and each one contains another array with column names as keys and the text as values

property: pgInternalPointer, addDataBefore, addData, pgData