Hi Pan,

I don't think that there is an automatic way to do this.  However, 
you could bind the DataGridColumn's width properties to columnWidth 
variables.  When you receive the result from a call, loop through 
each element and determine the maximum length of text for each 
column.  Then update your columnWidth variables accordingly.  This 
is really cumbersome, but it should work.

-TH

--- In [email protected], "JesterXL" <[EMAIL PROTECTED]> wrote:
>
> Uh... there was a spaceColumnsEqually method in Flex 1.5, but 
she's nowhere to be found in Flex 2.  wtf?
> 
> ----- Original Message ----- 
> From: Pan Troglodytes 
> To: flexcoders 
> Sent: Friday, July 07, 2006 12:38 PM
> Subject: [flexcoders] how to get the DataGrid to auto-fit columns
> 
> 
> Wow, go away for a week and you get hundreds of messages.  This 
list is really hopping!
> 
> Anyway - is there no way to have the DataGrid automatically resize 
the columns to fit their content?  Even if that content is just 
plain text?  I've pored over the docs and can't find it.  Seems like 
a big shortcoming.  Maybe we should try to convince DevExpress to 
port their grid to Flex. 
> 
> -- 
> Jason
>






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to