If you're using 1.5 you may need to use some doLater's (check the docs) to delay setting the width. Flex 2 validateNow() helps avoid that.
As far as using Flex 2 now vs 1.5 it really depends on your timeframe and willingness to work with beta code. The more flexible you are, the more I recommend 2.0. The stricter your deadlines, the more you stick with 1.5. Matt -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of sinacapho Sent: Monday, March 06, 2006 11:34 PM To: [email protected] Subject: [flexcoders] Re: Dynamic inserted column in datagrid Dear Matt, But i am using flex 1.5. is That possible ? Actually i have working for the company that will use Flex as the front end development. is it more convenience if i use Flex 2 and actionscript to development? As it seems that Flex 2 have fixed any bugs thx capho --- In [email protected], "Matt Chotin" <[EMAIL PROTECTED]> wrote: > > I think you may be experiencing a bug that is fixed in beta 2. Try > calling validateNow() on the DataGrid after you've assigned the > dataProvider and then try setting the width of the columns. > > Matt > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of sinacapho > Sent: Monday, March 06, 2006 3:19 AM > To: [email protected] > Subject: [flexcoders] Dynamic inserted column in datagrid > > Dear all, > i have facing a problem like this. I call two web service. One > of them get the dataset .The other is get the column label and name of > the datagrid. > After i have get this 2 web service result(i sure i got it). I > use actionscript to add the datagridcolumn into the datagrid according > to the data i get from the second web service. > > After that i have set the dataprovider of the datagrid to be > the result of the first web service . Actually the data can show . But > the column width cannot set. Sometime 3 of the column width have used > up all the datagrid width and the other column just hidden until you > have use mouse to resize the column. i have set the column width but > the problem come the same. What i can do? > > thx > capho > > > > > > > -- > 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/

