1 Reply Latest reply on May 5, 2012 10:44 AM by andrew23121988

    Rotate HeaderText in DataGrid



      I got many letters in headerText of DataGridColumn. Can anyone help me with this problem?

      1) Maybe someone know how works rotating()? This problem was discussed here http://tech.groups.yahoo.com/group/flexcoders/message/62230. But this method doesn't work.

      2) Or is it possible to enter several strings to headerText with '\n' between them? 'cause we can always make headerHeight as big as we need to.

      Here is a code of mine



           @font-face {


                fontFamily: "MyFont";

                fontWeight: bold;







      <mx:DataGrid id="myGrid2" x="91" y="526" height="100" dataProvider="{initDG2}" editable="true"

                 variableRowHeight="true" maxHeight="150" headerHeight="60">


                 <mx:DataGridColumn dataField="Field1" width="150" headerText="Very long text"/>

                 <mx:DataGridColumn dataField="Field2" headerText="Very long text">



                                <mx:VBox horizontalAlign="center">

                                     <mx:Text text="{this.headerText.data}" styleName=".myStyle1" rotation="90"/>   









      Sorry for my bad English. And thanks in advance.