ActionScript 2.0 Components Language Reference |
|
|
|
| DataGrid component > DataGrid.headerHeight | |||
Flash Player 6 (6.0.79.0).
Flash MX Professional 2004.
myDataGrid.headerHeight
Property; the height of the header bar of the data grid, in pixels. The default value is 20.
The following example sets the height of the header bar to 40. With a DataGrid instance named my_dg on the Stage, paste the following code in the first frame of the main timeline:
// Set grid attributes.
my_dg.setSize(240, 100);
my_dg.spaceColumnsEqually();
// Set up sample data.
var myDP_array:Array = new Array();
myDP_array.push({name:"Clark", score:3135});
myDP_array.push({name:"Bruce", score:403});
myDP_array.push({name:"Peter", score:25});
my_dg.dataProvider = myDP_array;
my_dg.headerHeight = 40;
|
|
|
|