I've gone looking for something to autoset the width of the column but I can't find anything. You might need to do something like create a hidden Label, set the value to be the longest string, measure it, then set the width of the column. Not the most straightforward but it's all I can think of at the moment.
Matt -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of jeff noyes Sent: Thursday, February 16, 2006 4:09 AM To: [email protected] Subject: [flexcoders] Datagrid questions... I have two quesitons for you... 1. How can I set the column size to be the size of the largest piece of data for the column? 2. After populating the grid with data via an xml file (suppose the xml generates 5 cols and 5 rows), how can I then append two columns to the end of the grid. For example: START STATE: XMLData XMLData XMLData XMLData XMLData XMLData XMLData XMLData XMLData XMLData XMLData XMLData XMLData XMLData XMLData XMLData XMLData XMLData XMLData XMLData XMLData XMLData XMLData XMLData XMLData END STATE: XMLData XMLData XMLData XMLData XMLData Data Data XMLData XMLData XMLData XMLData XMLData Data Data XMLData XMLData XMLData XMLData XMLData Data Data XMLData XMLData XMLData XMLData XMLData Data Data XMLData XMLData XMLData XMLData XMLData Data Data Thanks -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Alberto Albericio Salvador Sent: Thursday, February 16, 2006 6:25 AM To: [email protected] Subject: [flexcoders] Flex2 data binding Hi all, Is there a way to extend the Array class so that I can bind UIcomponents properties to the array.length property? Something like: <mx:VBox visible="{myArray.length > 0}" /> -- Alberto Albericio Salvador Aura S.A. Seguros Departamento Informática -- 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 -- 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 -- 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/

