Example
The following example prevents the column at index 0 from being resized:
// Set grid attributes.
my_dg.setSize(150, 100);
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 resize of the first column
my_dg.getColumnAt(0).resizable = false;
DataGridColumn.sortable
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
getColumnAt(
myDataGrid.
Description
Property; a Boolean value that indicates whether a column can be sorted by a user (
not (
). The
false
DataGrid.sortableColumns
property to take effect. The default value is
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.
).sortable
index
property must be set to
.
true
true
for this
true
DataGridColumn.sortable
) or
309
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?
Questions and answers