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
|