ActionScript 2.0 Components Language Reference |
|
|
|
| DataGrid component > DataGrid.resizableColumns | |||
Flash Player 6 (6.0.79.0).
Flash MX Professional 2004.
myDataGrid.resizableColumns
Property; a Boolean value that determines whether the columns of the grid can be stretched by the user (true) or not (false). This property must be true for individual columns to be resizable by the user. The default value is true.
The following example prevents users from resizing columns. With a DataGrid instance named my_dg on the Stage, paste the following code in the first frame of the main timeline:
my_dg.setSize(140, 100);
// 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;
// Don't allow columns to be resizable.
my_dg.resizableColumns = false;
|
|
|
|