Hi Gordon, Initially my dataProvider was an XML or even XMLList; I couldn't get that to work properly - probably my limitations, not those of Flex; so I moved to having an ArrayCollection as the data provider.
I was/am replacing fields in Objects, and even more obliquely, was replacing XML attributes of an XML field in the (row) item (object). I was also doing summing calculations on a row and column basis, using other rows, and stuffing some results into another field (XML attributes) of the same row, and other fields of other rows. I think I'm trying to do things that are not typical DataGrid operations, and that explains the need for special measures. Not replacing entire items, just fields, but also I'm supporting drag/drop operations that require multi-row field modifications. I'm gotten to the edge of the woods on this, hopefully you won't be hearing bleating noises from me for a while, until, say, I try to run an expired Beta against a web service for which the run-time license has been depleted to a level of between 0 and 1 units of service delivery. :< -- John -- John --- In [email protected], "Gordon Smith" <[EMAIL PROTECTED]> wrote: > > > The actual working solution involved the assembling of a > > PropertyChangeEvent into a CollectionEvent and dispatching that to the > > source dataProvider ArrayCollection. > > It may work, but it doesn't sound to me like anything you should ever > have to do to get a DataGrid to work properly. > > Can you please explain exactly what kind of data provider and data items > you have, and what kind of change you're making to them that isn't > getting shown in the DataGrid? For example: > > Is your data provider an ArrayCollection or something else? > > Are the data items plain Objects or instances of classes? > > Are you changing fields inside an item? Or replacing entire items? > > Gordon Smith > Adobe Flex SDK Team > > ________________________________ > > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of mr_j_harris > Sent: Tuesday, February 12, 2008 11:03 AM > To: [email protected] > Subject: [flexcoders] Re: How can I FORCE a REDRAW of a DATAGRID > (resolved) > > > > > Hi all, thanks for all your attention and suggestions. > Sorry to say, some of them were a bit loopy: for example, > the wholesale substitution of a 'cloned' dataProvider. > > I had the help of a highly skilled Flex developer who is also is a > group member here, and he provided the proper stuff. > > In brief, it's an 'old-school' attitude to 'force' stuff in a > message-passing (event dispatching) environment, and that wouldn't be > the way to do it. > > The actual working solution involved the assembling of a > PropertyChangeEvent into a CollectionEvent and dispatching that to the > source dataProvider ArrayCollection. > > Thanks Ryan! > > -- wipes brow -- > > --- In [email protected] <mailto:flexcoders%40yahoogroups.com> > , Tom Chiverton <tom.chiverton@> > wrote: > > > > On Tuesday 12 Feb 2008, mr_j_harris wrote: > > > well not so fast, mx:columns is not recognized after I swap > > > mx:DataGrid for > > > utilities:ADDataGrid > > > > Is ADDataGrid a sub class of DataGrid ? And you mean you can't use > mx:Columns > > in MXML when using the sub class ? > > Try utilities:columns instead. > > > > -- > > Tom Chiverton > > Helping to conveniently create next-generation materials > > on: http://thefalken.livejournal.com > <http://thefalken.livejournal.com> > > > > **************************************************** > > > > This email is sent for and on behalf of Halliwells LLP. > > > > Halliwells LLP is a limited liability partnership registered in > England and Wales under registered number OC307980 whose registered > office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, > Manchester, M3 3EB. A list of members is available for inspection at > the registered office. Any reference to a partner in relation to > Halliwells LLP means a member of Halliwells LLP. Regulated by The > Solicitors Regulation Authority. > > > > CONFIDENTIALITY > > > > This email is intended only for the use of the addressee named above > and may be confidential or legally privileged. If you are not the > addressee you must not read it and must not use any information > contained in nor copy it nor inform any person other than Halliwells > LLP or the addressee of its existence or contents. If you have > received this email in error please delete it and notify Halliwells > LLP IT Department on 0870 365 2500. > > > > For more information about Halliwells LLP visit www.halliwells.com. > > >

