Caution: The DataGrid is not editable or sortable if it is bound directly to a WebServiceConnector
component or an XMLConnector component. You must bind the DataGrid component to the
DataSet component and bind the DataSet component to the WebServiceConnector component or
XMLConnector component if you want the grid to be editable or sortable. For more information, see
Chapter 14, "Data Integration (Flash Professional Only)," in Using Flash.
Example
The following example allows users to edit all the columns of the grid except the first column:
myDataGrid.editable = true;
myDataGrid.getColumnAt(0).editable = false;
See also
DataGridColumn.editable
DataGrid.editField()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myDataGrid.editField(index, colName, data)
Parameters
The index of the target cell. This number is zero-based.
index
A string indicating the name of the column (field) that contains the target cell.
colName
The value to be stored in the target cell. This parameter can be of any data type.
data
Returns
The data that was in the cell.
Description
Method; replaces the cell data at the specified location and refreshes the data grid with the new
value. Any cell present for that value will have its
Example
The following example places a value in the grid:
var prevValue = myGrid.editField(5, "Name", "Neo");
270
Chapter 6: Components Dictionary
method triggered.
setValue()
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?