PDA

View Full Version : DataGridColumn headerText on multiple lines


paraglidersd
02-17-2009, 08:37 PM
How would you get header text to display over two lines? e.g., if my code looks something like:

<mx:DataGrid id="dg"........>
<mx:columns>
<mxDataGridColumn headerText="col1" dataField="f1"/>
<mxDataGridColumn headerText="some long header text field" dataField="f2" />
</mx:columns>
</mx:DataGrid>

How would I get the second column (f2) to spread out over 2 lines when rendered? (e.g.
"some long header
text field"

I tried embedding \r and \n in the headerText identifier, but that didnt seem to work. ???

thanks,
Bill