Alex, I really appreciate your reply. What kind of workaround are you suggesting? One way to do it would be to create the whole datagrid in a dynamic way. This is not my code. I would have done that at the beginning. I will suggest them to create the datagrid in a dynamic way. It seems there is no a lot changes.
Regards, Fudong --- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote: > > This issue was addressed in an updater due out soon (probably a month or > two), so you can wait until then or we can try to find a workaround. > > > > -Alex > > > > ________________________________ > > From: [email protected] > [mailto:[EMAIL PROTECTED] On Behalf Of fudongli > Sent: Saturday, March 17, 2007 4:32 PM > To: [email protected] > Subject: [flexcomponents] DataGrid column width problem > > > > Guys, > > We have a stupid problem here. In one of datagrid developed by our > developers, there are a few columns need to be added dynamically > besides 5 basic column. The width of the grid is 800. So before the new > columns are added dynamically, the last column takes width of 800- > 4*columns though it is given a fixed column. This is fine. But after the > new > columns are added, the width of this column still stays same. You have > to > drap the column to see new columns. I tried to redefine the column's > width > dynamically, but following code is not working: > > datagrid.columns[5].width = 60; > > It caused errors. Tried percentWidth, also not working. Did I do > something > wrong? How can I fix this issue? > > Many thanks, > > Fudong >
