Hi Steve, Have you considered using DataGrid.selectedIndex. This is the same index as the dataProvider item.
-TH --- In [email protected], "Steve Cox" <[EMAIL PROTECTED]> wrote: > > I'm hoping I'm making a stupid mistake somewhere regarding rowIndex from > within an item Renderer. > > The docs state: > rowIndex : int > The index of the item in the data provider. > > However in practice the rowIndex I'm actually getting is the rowIndex of > the DataGrid itself, not the dataProvider. So for example if I were to > click onto an item it's rowIndex may be 7, but scrolling down a little > the rowIndex changes. This is obviously not the rowIndex of the > provider, but the datagrid. > > I'm using the following code: > > var evt:DataGridItemEvent = new DataGridItemEvent("editItem"); > evt.rowIndex = listData["rowIndex"]; > var owner:DataGrid = listData["owner"]; > owner.dispatchEvent(evt); > > Where DataGridItemEvent is a simple custom event. > > Any clues? > > Cheers, Steve > ------------------------ Yahoo! Groups Sponsor --------------------~--> Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

