User Guide

DataGrid component (Flash Professional only) 281
Description
Property (read-only); the name of the field associated with this column. The default value is the
name called in the DataGridColumn constructor.
Example
The following example assigns the column name of the column at the third index position to the
variable
name:
var name = myGrid.getColumnAt(3).columnName;
See also
Constructor for the DataGridColumn class
DataGridColumn.editable
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myDataGrid.getColumnAt(index).editable
Description
Property; determines whether the column can be edited by a user (true) or not (false). The
DataGrid.editable property must be true in order for individual columns to be editable, even
when
DataGridColumn.editable is set to true. The default value is true.
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 prevents the first column in a grid from being edited:
myDataGrid.getColumnAt(0).editable = false;
See also
DataGrid.editable