User Guide
DataGrid component (Flash Professional only) 277
Usage
myDataGrid.showHeaders
Description
Property; a Boolean value that indicates whether the data grid displays the column headers (true)
or not (
false). Column headers are shaded to differentiate them from the other rows in a grid.
Users can click column headers to sort the contents of the column if
DataGrid.sortableColumns is set to true. The default value of showHeaders is true.
Example
The following example hides the column headers:
myDataGrid.showHeaders = false;
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.
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 turns off sorting:
myDataGrid.sortableColumns = false;
See also
DataGrid.headerRelease