ActionScript 2.0 Components Language Reference |
|
|
|
| DataGrid component > DataGridColumn.headerText | |||
Flash Player 6 (6.0.79.0).
Flash MX Professional 2004.
myDataGrid.getColumnAt(index).headerText
Property; the text in the column header. The default value is the column name.
This property allows you to display something other than the field name as the header.
The following example sets the column header text to "Price (USD)":
import mx.controls.gridclasses.DataGridColumn;
var my_dg:mx.controls.DataGrid;
var price_dgc:DataGridColumn = new DataGridColumn("price");
price_dgc.headerText = "Price (USD)";
price_dgc.width = 80;
my_dg.addColumn(price_dgc);
my_dg.addItem({price:"$14.99"});
|
|
|
|