You have'nt read all the replies to your question, have you? :)
Anyways, specify the wordwrap in the mx:DataGridColumn as see below.

<mx:DataGrid id="dg" width="680" height="320" variableRowHeight="true">
        <mx:columns>
            <mx:Array>
                <mx:DataGridColumn columnName="Total" headerText="Total reserves"  wordWrap="true" />

have'nt And there are quite a few posts that explain how you could split the variables to 2 lines as well!

Sree
Hai,
     I tried giving variableRowHeight to true and wordwrap=true but still it doesnt work. pls help me with this..
my code is:
 <mx:DataGrid id="dg" width="680" height="320" variableRowHeight="true" wordWrap="true">
        <mx:columns>
            <mx:Array>
                <mx:DataGridColumn columnName="Total" headerText="Total reserves"  />
I want the column to display "total" in the first line of the header and "reserves" in the next line..

Matt Chotin <[EMAIL PROTECTED]> wrote:

Have you set variableRowHeight to true?

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of nithya karthik
Sent: Sunday, May 15, 2005 10:14 PM
To: flexcoders
Subject: [flexcoders] Datagrid word wrap- it isnt working.

 

Hai,

       when i give wordwrap="true" in a datagrid,  it isnt wraping the text... May i know the reason and the way  to rectify it?

I used something like this:

 <mx:DataGridColumn columnName="Total" headerText="Total reserves" wordWrap="true"/>

I want 'Total' in the first line and 'reserves' in the next line of the header.. How to do this?


Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now


Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now


Yahoo! Groups Links

Reply via email to