Hi all.

I have a wierd situation, hopefully someone here can help.

I have a DataGrid's dataprovider bound to an myDP ArrayCollection (it is
defined as [Bindable]). Each column in the DG has a labelFunction.
When I set the myDP values for the first time, everything is sweet, the data
is displayed correctly.

When I update the myDP with new data, however, everything goes wrong. The
labelFunctions still get the stale data (from before the update), and so the
grid shows old data.
I verified the new data is updated to the DG's dataProvider (added a
listener to datagrid for CollectionEvent.COLLECTION_CHANGE - the new data is
updated in the DG dataprovider - checked in event's currentTarget).

I can't understand why the dataprovider is updated and still the
labelFunction's item:Object contain old data...

Any ideas anyone?

Thanks,
Sefi

Reply via email to