User Guide

DataGrid component (Flash Professional only) 275
Usage
myDataGrid.removeColumnAt(index)
Parameters
index
The index of the column to remove.
Returns
A reference to the DataGridColumn object that was removed.
Description
Method; removes the DataGridColumn object at the specified index.
Example
The following example removes the DataGridColumn object at index 2 in myDataGrid:
myDataGrid.removeColumnAt(2);
DataGrid.replaceItemAt()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myDataGrid.replaceItemAt(index, item)
Parameters
index
The index of the item to be replaced.
item An object that is the item value to use as a replacement.
Returns
The previous value.
Description
Method; replaces the item at a specified index and refreshes the display of the grid.
Example
The following example replaces the item at index 4 with the item defined in aNewValue:
var aNewValue = {name:"Jim", value:"tired"};
var prevValue = myGrid.replaceItemAt(4, aNewValue);