That is what I have tried, and it is not working. The documentation says that a datagridcolumn has a default width of 100. I haven't been able to find anything in the flex documentation to mention the possibility of a variable width column.
--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote: > > > Are you setting explicit width values for the columns that you want to > remain fixed? Thie following code should keep the first two columns at > a fixed width and the third column should take up the rest of the > variable width: > > <mx:DataGrid width="100%"> > <mx:columns> > <mx:DataGridColumn dataField="field1" width="200"/> > <mx:DataGridColumn dataField="field2" width="100"/> > <mx:DataGridColumn dataField="field3"/> > </mx:columns> > </mx:DataGrid> > > -TH > > --- In flexcoders@yahoogroups.com, "ozziegt" <osman.ullah@> wrote: > > > > I have a datagrid which I want to be variable width. I need some of > > the columns to remain fixed width while maybe one or two expand to > > fill the rest of the space. However, any solution I am trying isn't > > working. The DataGrid is resizing all the columns. Any suggestions? > > > > Thanks > > >