Just as simple: lose the array



<mx:DataGrid id="grid" dataProvider="{myXmlListCollection()}"
width="100%" height="100%" e >
        <mx:columns>
           <mx:DataGridColumn dataField="NAME" headerText="NAME"/>
           <mx:DataGridColumn dataField="TITLE" headerText="TITLE"
width="75" />
      </mx:columns>
</mx:DataGrid>


As opposed to


<mx:DataGrid id="grid" dataProvider="{myArrayCollection()}" width="100%"
height="100%" e >
        <mx:columns>
           <mx:Array>
             <mx:DataGridColumn dataField="NAME" headerText="NAME"/>
             <mx:DataGridColumn dataField="TITLE" headerText="TITLE"
width="75" />
           </mx:Array>
      </mx:columns>
</mx:DataGrid>
 


Brian...

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Jaap Cammeraat
Sent: Tuesday, February 27, 2007 8:57 AM
To: [email protected]
Subject: [flexcoders] DataGrid to Xml

Hi all,

To populate a DataGrid is simple thru binding an ArrayCollection.
Is there also a simple way to save the DataGrid (or ArrayCollection) as
Xml?

Regards
Jaap Cammeraat


------------------------ Yahoo! Groups Sponsor --------------------~-->
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/kOt0.A/gOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
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





***
The information in this e-mail is confidential and intended solely for the 
individual or entity to whom it is addressed.  If you have received this e-mail 
in error please notify the sender by return e-mail delete this e-mail and 
refrain from any disclosure or action based on the information.
***

Reply via email to