thanks for all the replies. It was solved. On Wed, Jan 27, 2010 at 12:27 PM, FlexiSush <[email protected]> wrote:
> Hi, > Try arrcoll.getItemAt(1).name="sample4"; > Hope it helps u and plz do reply back :) > > On Jan 26, 2:15 pm, sankar swaroop <[email protected]> wrote: > > Hi friends, > > > > I given an arraycollection as a dataprovider to a datagrid which was with > > some itemrenderers. > > while retrieving the saved data from the grid i am copying some columns > like > > arraycoll[3]['name'] = 'saome name'; > > when i am assigning some value to a particular row item in the > dataprovider > > arraycollection, > > all the rows are updating with the same name. > > for example: if an arraycollection has 3 items like > > arrcoll:ArrayCollection = new Arraycollection([ > > {name:'sample1' id:1}, > > {name:'sample2' id:1}, > > {name:'sample3' id:1} > > ]); > > when i want to update the second name i.e.sample2 with sample4 and i > > assigned that value like > > arrcoll[1]['name']='sample4'; > > all the items are effecting like > > > > {name:'sample4' id:1}, > > {name:'sample4' id:1}, > > {name:'sample4' id:1} > > > > So how can i update a single item in an arraycollection. > > please provide me the solution > > > > Thanks, > > shankar swaroop > > -- > You received this message because you are subscribed to the Google Groups > "Flex India Community" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<flex_india%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/flex_india?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

