And to your original question, that seems like the hard way to do it. Why not just loop over the dataProvider and set each item's selectedIndex property? Use the dataProvider API, or call itemUpdated(), or re-assign the dataProvider to get the changes to show up in the DG.
Tracy ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Tuesday, November 25, 2008 3:45 PM To: [email protected] Subject: RE: [flexcoders] Re: ComboBox as itemRenderer/editor in Datagrid is not updating dataProvider... "...directly manipulate the grid's dataProvider..." This is my preferred approach, over depending on the list components own editing process. An itemRenderer gets a reference to the entire dataProvider item that spawned it. The framework passses it in via the set data function. You can use that *reference* to update any property on the item. Tracy ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of biosmonkey Sent: Monday, November 24, 2008 8:54 PM To: [email protected] Subject: [flexcoders] Re: ComboBox as itemRenderer/editor in Datagrid is not updating dataProvider... My understanding of this function is that it is to cause an update in the rendering of the control attached to the data, which implies that the dataProvider has the correct data - the control is just not showing it. I have the reverse problem. In my case, the renderers (the combo boxes) are changing just fine, but the selection index in the combo is NOT being written back to the grid's dataProvider. Another solution would be to directly manipulate the grid's dataProvider myself. In this case, I can hook the change event for the itemrenderer and manually update the value. But I don't know off hand how to access the parent dataProvider cell from within an itemRenderer? --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , Alex Harui <[EMAIL PROTECTED]> wrote: > > Depending on your data, you may need to call itemUpdated so renderers find out there's been a change to their data. >

