DataGrid.columnCount
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
myDataGrid.columnCount
Description
Property (read-only); the number of columns displayed.
Example
The following example displays the total number of columns in the Output panel. With a
DataGrid instance named
on the Stage, paste the following code in the first frame of
my_dg
the main timeline:
// Add columns to grid and add data.
my_dg.addColumn("a");
my_dg.addColumn("b");
my_dg.addItem({a:"one", b:"two"});
// Get number of columns in grid.
var colCount_num:Number = my_dg.columnCount;
trace("Number of columns: "+colCount_num);
DataGrid.columnNames
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
myDataGrid.columnNames
Description
Property; an array of field names within each item that are displayed as columns.
280
DataGrid component (Flash Professional only)
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?
Questions and answers