So I'm curious... What's the benefit of using <mx:Model> and further abstracted through an <mx:ArrayCollection>, as opposed to <mx:XML> and just using that as a direct dataProvider to the DataGrid?
- Josh --- In flexcoders@yahoogroups.com, "Joe" <[EMAIL PROTECTED]> wrote: > > Then , here is my c.mxml file. > ========= c.mxml ========= > <?xml version="1.0" encoding="utf-8"?> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" > width="600" height="450"> > <mx:Model id="GetData" source="listino.xml" /> > > <mx:ArrayCollection id="ac" > source="{GetData.Catalog.Product}" /> > <mx:DataGrid id="dg" dataProvider="{ac}" > > > <mx:columns> > <mx:DataGridColumn headerText="Name" > dataField="Name" width="120" /> > <mx:DataGridColumn > headerText="Descrption" dataField="Description" width="250" /> > <mx:DataGridColumn > headerText="Price" dataField="Price" width="150" /> > </mx:columns> > > </mx:DataGrid> > > </mx:Application> ------------------------ Yahoo! Groups Sponsor --------------------~--> Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/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 <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/