MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 307

Components language reference
Table of Contents

Advertisement

Description
Property; determines whether the column can be edited by a user (
DataGrid.editable
even when
DataGridColumn.editable
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 16, "Data Integration (Flash
Professional Only)," in Using Flash.
Example
The following example prevents items in the first column in a grid from being edited:
// Set grid attributes.
my_dg.setSize(150, 100);
my_dg.editable = true;
// Add columns to grid.
my_dg.addColumn("name");
my_dg.addColumn("score");
// Set up sample data.
my_dg.addItem({name:"Clark", score:3135});
my_dg.addItem({name:"Bruce", score:403});
my_dg.addItem({name:"Peter", score:25});
// Don't allow first column to be editable.
my_dg.getColumnAt(0).editable = false;
See also
DataGrid.editable
property must be
true
is set to
in order for individual columns to be editable,
. The default value is
true
DataGridColumn.editable
) or not (
). The
true
false
.
true
305

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents