User Guide

284 Chapter 6: Components Dictionary
Description
Property; a Boolean value that indicates whether a column can be sorted by a user (true) or not
(
false). The DataGrid.sortableColumns property must be set to true for this property to take
effect. 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 column at index 1 from being sorted:
myGrid.getColumnAt(1).sortable = false;
DataGridColumn.sortOnHeaderRelease
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myDataGrid.getColumnAt(index).sortOnHeaderRelease
Description
Property; a Boolean value that indicates whether the column is sorted automatically (true) or not
(
false) when a user clicks a header. This property can be set to true only if
DataGridColumn.sortable is set to true. If DataGridColumn.sortOnHeaderRelease is set to
false, you can catch the headerRelease event and perform your own sort.
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 lets you catch the headerRelease event to perform your own sort:
myGrid.getColumnAt(7).sortOnHeaderRelease = false;