Below is a very simple example. One key is to re-assign the modified array to the columns property. Do not miss that step.
http://www.cflex.net/showFileDetails.cfm?ObjectID=552 Tracy ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Ethan Miller Sent: Monday, June 09, 2008 1:38 PM To: [email protected] Subject: [flexcoders] Creating Data Grid Columns Dynamically? Greetings - I need to construct data grid columns on the fly, ie build the table from the data. WAs thinking I could make column class and that run a "for each in" loop adding the columns as children to myGrid.columns (as it were). Doesn't work for a variety of reasons. Anyone here know how to do this? Sample code perhaps? thanks, ethan

