Datagrid.columncount; Datagrid.columnnames - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

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)

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents