User Guide

274 Chapter 6: Components Dictionary
Description
Property; specifies whether the data grid has a horizontal scroll bar. This property can have the
value
"on", "off", or "auto". The default value is "off".
If
hScrollPolicy is set to "off", columns scale proportionally to accommodate the finite width.
Note: This differs from the List component, which cannot have hScrollPolicy set to "auto".
Example
The following example sets horizontal scroll policy to automatic, which means that the horizontal
scroll bar appears if its necessary to display all the content:
myDataGrid.hScrollPolicy = "auto";
DataGrid.removeAllColumns()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myDataGrid.removeAllColumns()
Parameters
None.
Returns
Nothing.
Description
Method; removes all DataGridColumn objects from the data grid. Calling this method has no
effect on the data provider.
Call this method if you are setting a new data provider that has different fields from the previous
data provider, and you want to clear the fields that are displayed.
Example
The following example removes all DataGridColumn objects from myDataGrid:
myDataGrid.removeAllColumns();
DataGrid.removeColumnAt()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.