User Guide
DataGrid component (Flash Professional only) 261
DataGrid.addItem()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myDataGrid.addItem(item)
Parameters
item
An instance of an object to be added to the grid.
Returns
A reference to the instance that was added.
Description
Method; adds an item to the end of the grid (after the last item index).
Note: This differs from the List.addItem() method in that an object is passed rather than a string.
Example
The following example adds a new object to the grid myGrid:
var anObject= {name:"Jim!!", age:30};
myGrid.addItem(anObject);
DataGrid.addItemAt()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myDataGrid.addItemAt(index, item)
Parameters
index
The index position (among the child nodes) at which the node should be added. The
first position is 0.
item A string that displays the node.
Returns
A reference to the object instance that was added.
Description
Method; adds an item to the grid at the position specified.