Also look into the itemUpdated() method. A full explanation is in the docs under the title: "Collection events and manual change notification"
Tracy ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Danny Gold Sent: Tuesday, March 04, 2008 10:29 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: [Bindable] doesn't work when updating properties in an object If the dataField of the column in the dataGrid is set to a Bindable property on the object, the column should update for that row. [Bindable] on the ArrayCollection only pertains to changes to the collection, i.e adding and removing items or changing the AC to reference a different ArrayCollection. Changes to a property on an object will only be dispatched to listeners on that specific property. Make sure your entire object is Bindable or at least the properties displayed in the DataGrid. Also, if you are using a dynamic object, its properties will not be Bindable. --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , "bjorn -" <[EMAIL PROTECTED]> wrote: > > I've got a DataGrid which uses a [Bindable] ArrayCollection as a > dataProvider. This arraycollection consits of objects. > > If I change a property (e.g. myobject.value = 100) this is not reflected by > the DataGrid. When I click the column header to make it sort by value I see > the change. > > I guess I have to dispatch an event to the dataProvider to tell it that a > value in one of its objects has changed. I tried doing that this way: > > var propEv:PropertyChangeEvent = new PropertyChangeEvent( > PropertyChangeEvent.PROPERTY_CHANGE, false, false, > PropertyChangeEventKind.UPDATE, property, valueBefore, item[ property ], > item); > ArrayCollection(this.dataProvider).dispatchEvent( propEv ); > > .. from inside my datagrid, but that didn't do much. > > > Best regards, > Bjørn > -- > > ======================== > http://www.juicability.com <http://www.juicability.com> - flex blog > http://www.43min.com <http://www.43min.com> - funny movies >