View Single Post
  #2 (permalink)  
Old 07-24-2008, 09:43 PM
ntsiii
 
Posts: n/a
Diggs:
Default Re: Editing ArrayCollection with Datagrid Issue

An assignment of anything but a primitive value, like String or int uses a
reference, and does not make a copy.

Since the values in the array are objects, you cannot use slice() on the
underlying array to get an independant copy.

You will need to loop over the array, and for each item, create a new item
object, assign its properties based on the master item.

Access the AC's underlying array through the "source" property.

Tracy

Reply With Quote