Some times removing width attribute for the last column does the trick.try!

Thanks!
Hari

-----Original Message-----
From: Yukari Machiyama [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 16, 2005 1:53 PM
To: '[email protected]'
Subject: RE: [flexcoders] Setting colunm width in a DataGrid column


Hi,

Can you try removing width="100%" from DataGrid tag and see if that works?

-Yukari


-----Original Message-----
From: javawebgrrl [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 16, 2005 9:25 AM
To: [email protected]
Subject: [flexcoders] Setting colunm width in a DataGrid column




Hi All,
I have a datagrid with 3 columns. I want to display the columns 
with the exact width that I have set, but what seems to be happening 
is that the third column "grows" to fit its text. Is there a way to 
truncate the text that goes into the column to just display the part 
that will fit (truncate the string) ?

Thanks very much for any advice, code pasted below:

<mx:DataGrid id="itemsHistoryDataGrid" variableRowHeight="true" 
dataProvider="{noteListResult}" vGridLines="false" 
change="onNoteGridSelection()" width="100%" height="100%">
<mx:columns>
<mx:Array>
<mx:DataGridColumn 
columnName="noteDate" headerText="Date" width="30"/>
<mx:DataGridColumn 
columnName="personId" headerText="Sender" width="30"/> 
<mx:DataGridColumn 
columnName="desc" headerText="Description" width="30"/> 
</mx:Array> 
</mx:columns>
</mx:DataGrid>






Yahoo! Groups Links










Yahoo! Groups Links








Reply via email to