2. You should be able to go something like var dgCol:DataGridColumn=new DataGridColumn(); myDG.addColumn(dgCol);
I think you can pass the name of the column through the constructor - but just a wild guess - You can set the propes on the dgCol like editable and so forth.. HTH. > > > > > 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 > > > > > > > > > > > SPONSORED LINKS > > > > > Web site design development > > > Computer software development > > > Software design and development > > > > > Macromedia flex > > > Software development best practice > > > > > > > > > > > > > > YAHOO! GROUPS LINKS > > > > Visit your group "flexcoders" on the web. > To unsubscribe from this group, send an email > to: [EMAIL PROTECTED] Your use > of Yahoo! Groups is subject to the Yahoo! Terms of Service. > > > > -- 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/

