User Guide
298 DataGrid component (Flash Professional only)
See also
DataGrid.sortableColumns
DataGrid.sortableColumns
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
myDataGrid.sortableColumns
Description
Property; a Boolean value that determines whether the columns of the data grid can be sorted
(
true) or not (false) when a user clicks the column headers. This property must be true for
individual columns to be sortable, and for the
headerRelease event to be broadcast. The
default value is
true.
Example
The following example turns off sorting:
my_dg.setSize(140, 100);
// 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 columns to be sorted.
my_dg.sortableColumns = false;
See also
DataGrid.headerRelease
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 16, “Data Integration (Flash
Professional Only),” in Using Flash.