Tom- The Datagrid component now has an attribute called columns. When you dynamically create columns, add them to an array and set datagrid.columns value to this array.
To add or remove columns, just get a reference to that 'columns' attribute and call normal array methods. I actually have a datagrid that has its columns change based on what value is selected in a tree. I set up my different columns as Arrays in the ModelLocator, and when a user clicks a tree, it switches the datagrid's columns value with the correct Array (creating them if they are not there already). --- In [email protected], Tom Fitzpatrick <[EMAIL PROTECTED]> wrote: > > The dynamic column methods for the datagrid seem to have disappeared > between 1.5 & 2. > > I've looked around for examples or descriptions of Flex 2 replacements > for methods such as dataGrid.addColumn() and dataGric.removeAllColumns() > that were available in 1.5, but haven't come up with much. Anyone have > any pointers? > > - Tom > -- 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/

