Hi all, I'm temporarily confused about databinding and I'm
hoping to get some clarification. Given a DataGrid that is bound to
an ArrayCollection, if updating the individual fields of a row in
the ArrayCollection, should the grid automatically update the
display? I'd always thought that the answer was yes, but it seems
to be not the case.
Attached at the bottom is a small example of a grid with an
ArrayCollection, and 3 buttons, one to add rows, one to delete rows
and one to change the first row. Clicking on the first or second
button adds or deletes a row from the dataprovider and it's
reflected in the GUI immediately. However the third buttom which
changes a field doesn't actually update the display. If some other
action needs to update the display, then we finally see the change.
This is a practical question as I have a (far more complex
example) of code that used to seem to work in a similar manner, but
when upgrading from Flex 3 beta 1 to beta 2 it stopped working.
That's why I came up with this simple example, but found that it
doesn't work in either beta 1 or beta 2! (Or Flex 2 either).
Thanks, any clarification would be greatly helpful.