User Guide

DataGrid component (Flash Professional only) 279
DataGrid.columnNames takes in the field names of the desired item fields and generates
DataGridColumn objects, in order, for each field listed. This approach lets you select and
order columns quickly with a minimal amount of configuration. This approach removes any
previous column information.
The most flexible way to add columns is to prebuild them as DataGridColumn objects and
add them to the data grid by using
DataGrid.addColumn(). This approach is useful because it
lets you add columns with proper sizing and formatting before the columns ever reach the grid
(which reduces processor demand). For more information, see “Constructor for the
DataGridColumn class” on page 279.
Property summary for the DataGridColumn class
The following table lists the properties of the DataGridColumn class.
Constructor for the DataGridColumn class
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
new DataGridColumn(name)
Property Description
DataGridColumn.cellRenderer The linkage identifier of a symbol to be used to display the
cells in this column.
DataGridColumn.columnName Read-only; the name of the field associated with the column.
DataGridColumn.editable A Boolean value that indicates whether a column is editable
(
true) or not (false).
DataGridColumn.headerRenderer The name of a class to be used to display the header of
this column.
DataGridColumn.headerText The text for the header of this column.
DataGridColumn.labelFunction A function that determines which field of an item to display.
DataGridColumn.resizable A Boolean value that indicates whether a column is resizable
(
true) or not (false).
DataGridColumn.sortable A Boolean value that indicates whether a column is sortable
(
true) or not (false).
DataGridColumn.sortOnHeaderRelease A Boolean value that indicates whether a column is sorted
(
true) or not (false) when a user clicks a column header.
DataGridColumn.width The width of a column, in pixels.