3 Replies Latest reply on Jan 12, 2009 7:23 AM by FlexNovice

    Column Heading - Two lines

      Can anyone show me (Please and Thank You) how to get "Really Really Long Name" into two lines without wrapping. I mean I want "Really Really" in the first line and "Long Name" in the second line.

      Greatly appreciate if anyone can provide the code.

      <?xml version="1.0"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute">
      import mx.collections.ArrayCollection;

      private var myDP:ArrayCollection = new ArrayCollection([
      {label:"Belgian Waffle Maker", price:139.99},

      <mx:DataGrid y="138" width="10" height="100" x="10" id="myDG" dataProvider="{myDP}"
      left="10" top="10" bottom="10" right="10">
      <mx:DataGridColumn dataField="label" headerText="Really Really Long Name" resizable="true" width = "30"/>
      <mx:DataGridColumn dataField="price" headerText="Price" width="400" resizable="true" textAlign="right"/>

      </mx:columns >