DataGridColumn class (Flash Professional only)

ActionScript Class Name mx.controls.gridclasses.DataGridColumn

You can create and configure DataGridColumn objects to use as columns of a data grid. Many of the methods of the DataGrid class are dedicated to managing DataGridColumn objects. DataGridColumn objects are stored in an zero-based array in the data grid; 0 is the leftmost column. After columns have been added or created, you can access them by calling DataGrid.getColumnAt(index).

There are three ways to add or create columns in a grid. If you want to configure your columns, it is best to use either the second or third way before you add data to a data grid so you don't have to create columns twice.

Property summary for the DataGridColumn class

The following table lists the properties of the DataGridColumn class.

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.


Version 8

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/8/main/00003290.html