You can get the column info by for in looping over one of the item
objects in the AC. Like getItemAt(0) .
for (var sName:String in oItem) {
sDataField = s;
}
Tracy
________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of parreira_r
Sent: Thursday, October 09, 2008 4:49 AM
To: [email protected]
Subject: [flexcoders] Dinamically creating a datagrid from an
arraycollection
Hello All
I'm trying to create a datagrid from an arraycollection using action
script. This arraycollection is sent by a server without any extra
information of its contents.
My problem is how do i create the datagrid columns by inspecting the
arraycollection? How do i know each column datafield from the
arraycollection objects?
What i realy need is what was done here :
http://www.cflex.net/showFileDetails.cfm?ObjectID=552
<http://www.cflex.net/showFileDetails.cfm?ObjectID=552>
but for arraycollections.
Can someone help me?
TIA,
Ricardo