Are you overriding the data mutator in your itemRenderer? Sounds like maybe a re-use issue. Read up on this stuff on Alex Harui's blog. Sorry no link at hand but Google will hit on it I'm sure.
DK On 4/3/08, Paul Whitelock <[EMAIL PROTECTED]> wrote: > I just tried removing the DataGrid from the display list and then > immediately re-adding it. The "ghost data" did not go away, so perhaps > it's not a redraw issue. > > I can't understand why the last item edited in the grid sticks around > when the data provider is changed. > > > --- In [email protected], "Paul Whitelock" <[EMAIL PROTECTED]> wrote: > > > > After a bit more investigation it appears that it might be a redraw > > issue since the last cell that is clicked is the one where the "ghost > > data" appears. > > > > Is there a way to force the DataGrid and all custom renderers to > > redraw? I've tried calling validateNow() on the DataGrid but it did > > not have an effect. > > > > > > > > > > --- In [email protected], "Paul Whitelock" <paul@> wrote: > > > > > > I have a single row DataGrid with a typed object bound as a data > > > provider. When data is entered in all columns the handler for > > > itemEndEvent updates another DataGrid and creates a new empty object > > > that replaces the previous data provider for the DataGrid. > > > > > > Even though the data in the new object that replaces the old data > > > provider is empty, the data that was previously entered in the > > > DataGrid columns randomly fills one or two of the five columns that > > > should be empty (it most often happens with two DateFields that are in > > > custom item renderers). Though data appears in the column cell, if you > > > try to get the data it comes back as null. > > > > > > Somehow the DataGrid or the custom item renderer is caching the > > > previous data and randomly re-displaying it. I've tried setting the > > > DataGrid data provider to null, then attaching the new empty object as > > > the data provider, but the ghost data still comes back. > > > > > > Any ideas how I can clear this old data when I replace the data > > > provider for the DataGrid so it doesn't reappear in columns that > > > should be empty? Thanks. > > > > > > > > -- Sent from Gmail for mobile | mobile.google.com Douglas Knudsen http://www.cubicleman.com this is my signature, like it?

