Thanks - the example made it much clearer. =) --- In [email protected], "Ashish Goyal" <[EMAIL PROTECTED]> wrote: > > I think the doc is pretty explainatory.. To further explain it, You can > still use an Array as dataProvider but any changes in the dataprovider > array won't update the control. If you want your control (DataGrid, List > etc.) to reflect the changes then you need to use Collection (There is > an ArrayCollection). > > Example: > > <m:DataGrid dataProvider="{ArrayDataProvider}"/> // Won't update the > DataGrid if you change element 1 from a to aa. > > <m:DataGrid dataProvider="{ArrayCollectionDataProvider}"/> // Will > update the DataGrid if you change element 1 from a to aa. > > Thanks > -Ashish > > > > > -----Original Message----- > > From: [email protected] > > [mailto:[EMAIL PROTECTED] On Behalf Of fowleryj > > Sent: Tuesday, October 18, 2005 12:10 PM > > To: [email protected] > > Subject: [flexcoders] Flex 2.0 - Arrays vs. Collections > > > > In reference to this page, > > http://livedocs.macromedia.com/labs/1/flex/00001587.html, will > > we now > > have to cast an Array to a Collection before binding to it (using it > > as the dataProvider for a DataGrid, for example)?
------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/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/

