Flash CS4 Professional ActionScript 2.0

Constructor for the DataGridColumn class

Availability

Flash Player 6 (6.0.79.0).

Edition

Flash MX Professional 2004.

Usage

new DataGridColumn(name)

Parameters

name A string that indicates the name of the DataGridColumn object. This parameter is the field of each item to display.

Returns

Nothing.

Description

Constructor; creates a DataGridColumn object. Use this constructor to create columns to add to a DataGrid component. After you create the DataGridColumn objects, you can add them to a data grid by calling DataGrid.addColumn().

Example

The following example creates a DataGridColumn object called Location:

import mx.controls.gridclasses.DataGridColumn;
var column = new DataGridColumn("Location");