Working with Flex and Datagrids - Hiding Columns (
Page 4 of 4 )
In certain cases, you may want to hide a DataGrid column. To do this, we use the 'visible' attribute of the DataGridColumn tag:
<mx:DataGridColumn visible='false' width="45" dataField="firstName"/>
Other DataGridColumn Attributes
Here is a list and short description of other handle attributes of the DataGridColumn tag:
- sortable
- By default, clicking on the header of a column will automatically sort the DataGrid's data provider. You can turn this function on or off by setting this attribute to true or false.
-
- minWidth
- Sets the minimum width of the column.
-
- resizable
- Determines whether or not a user can resize the column.
For more information on DataGrids and DataGrid Columns, see the Adobe Language Reference for Flex 3 at
http://livedocs.adobe.com/flex/3/langref/