I have a simple example that builds dynamic columns. It uses the structure of the dataprovider, but should be easily modifiable to use metadata from anywhere.
Go to www.cflex.net <http://www.cflex.net/> and search on dynamic column. Tracy ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of vkc_nair Sent: Wednesday, November 28, 2007 12:49 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to do Dynamic DataGrid and Column Labels Hi All, I have a database table "A" defined as ID Number Type Char(10) Attribute1 Char(20). ........ ......... ........ Attribute100 Char(20) to store the data. Another table "B" to store the labels of Attibute1 to Attribute100 depends on the Value of Type in table A. I have to create a datagrid to show the data depends on the different "type" values selected in a list. The grid should change the column labels and data depends on the Type selected. Table B (The type table) is dynamic, the user can add new types and column labels for Attribute1 to Attribute100. Any idea how this can be done in Flex 2. Thanks VN