DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Flex Datadrig Wordwrap

03.05.2009
| 3913 views |
  • submit to reddit
        // turn wordwrap on a datagrid column

    <mx:DataGrid id="dg" width="100%" height="100%" rowCount="5" variableRowHeight="true">
        <mx:columns>
            <mx:DataGridColumn id="Col" dataField="@desc" headerText="Risk" width="400" wordWrap="true" />
            <mx:DataGridColumn dataField="@status" headerText="Level"/>
            <mx:DataGridColumn dataField="@count" headerText="Violation"/>
        </mx:columns>
    </mx:DataGrid>