ActionScript 2.0 Components Language Reference |
|
|
|
| DataGrid component > DataGridColumn.resizable | |||
Flash Player 6 (6.0.79.0).
Flash MX Professional 2004.
myDataGrid.getColumnAt(index).resizable
Property; a Boolean value that indicates whether a column can be resized by a user (true) or not (false). The DataGrid.resizableColumns property must be set to true for this property to take effect. The default value is true.
The following example prevents the column at index 0 from being resized:
// Set grid attributes.
my_dg.setSize(150, 100);
my_dg.addColumn("name");
my_dg.addColumn("score");
// Set up sample data.
my_dg.addItem({name:"Clark", score:3135});
my_dg.addItem({name:"Bruce", score:403});
my_dg.addItem({name:"Peter", score:25});
// Don't allow resize of the first column
my_dg.getColumnAt(0).resizable = false;
|
|
|
|