Skip to main content

addDataBefore

Type

property

Summary

A method for adding data to the table.

Syntax

set the addDataBefore of widget to <List>

Description

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

Examples

-- Adds two new items to the content of the table before 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 addDataBefore of widget "PolyGrid" to tDataToAdd

property: pgInternalPointer, addDataAfter, addData, pgData