Previously, I tried: LPA_TimeRecord.dataProvider.dispatchEvent(new CollectionEvent(mx.events.CollectionEvent.COLLECTION_CHANGE)); , which didn't work.
But who is supposed to listen and respond to it? Will the datagrid automatically listen and redraw? John --- In flexcoders@yahoogroups.com, "Johannes Nel" <[EMAIL PROTECTED]> wrote: > > try dispatching a custom change event > [Bindable (event='myEvent')] > instead of just > [Bindable] > > On Jan 2, 2008 11:59 AM, j_lentzz <[EMAIL PROTECTED]> wrote: > > > Just tried it, but no change. I could change the values and see it in > > my editing locations, but they weren't reflected in the datagrid, but > > are really there if I select that row again. > > --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>, > > "Johannes Nel" <johannes.nel@> > > > > wrote: > > > > > > have you tried dispatching the collection_change event from the array > > > collection? > > > > > > On Jan 2, 2008 10:20 AM, j_lentzz <jelentz@> wrote: > > > > > > > Hi, > > > > > > > > I've got a datagrid with a custom renderer. I'm not editing in the > > > > datagrid, but when a row is selected, I populate some TextInputs and > > > > ComboBoxes to let them edit the data. When they are done, I use > > > > itemUpdated on the datagrid ArrayCollection. This seems to work just > > > > fine. However, after they edit the data, it isn't being updated in > > > > the datagrid. I can select a different row, then select the original > > > > row and the new data appears in the edit locations, but only the old > > > > data is displayed in the datagrid. I've tried all the invalidateXXX > > > > methods I could find, but nothing seems to get the datagrid do display > > > > the new data. Also, I can set a breakpoint, examine the > > > > arraycollection the datagrid uses, and the correct data is present - > > > > just not being displayed. What do I need to do to get the datagrid to > > > > be forced to used the arraycollection and update all the > > > > itemrenderers? I'm using 2.01, would Flex 3 be better? > > > > > > > > Thanks, > > > > > > > > John > > > > > > > > > > > > > > > > > > > > > > > > -- > > > j:pn > > > \\no comment > > > > > > > > > > > > > -- > j:pn > \\no comment >