Classes can't be iterated for their properties (plan object can, but not
some class instance).  Iteration only works for dynamic properties.

 

ObjectUtil.getClassInfo will get the list of properties for you.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Ethan Miller
Sent: Monday, June 09, 2008 10:38 AM
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

 

Reply via email to