DataGrid.addItem()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myDataGrid.addItem(item)
Parameters
An instance of an object to be added to the grid.
item
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
Example
The following example adds a new object to the grid
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
The index position (among the child nodes) at which the node should be added. The
index
first position is 0.
A string that displays the node.
item
Returns
A reference to the object instance that was added.
Description
Method; adds an item to the grid at the position specified.
method in that an object is passed rather than a string.
List.addItem()
:
myGrid
DataGrid component (Flash Professional only)
261
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?
Questions and answers