Him Tom, as long as your item renderer implements the IDropInListItemRenderer interface you can get the columnIndex and rowIndex from the listData property. If an item renderer lives inside a DataGrid, listData is of type mx.controls.dataGridClasses.DataGridListData - so everything should be there already.
Dirk. > -----Original Message----- > From: [email protected] > [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton > Sent: Monday, October 30, 2006 11:39 AM > To: [email protected] > Subject: Re: [Junk E-Mail - MED] Re: [flexcoders] Re: A > DataGrid with selectable *cells* > > On Thursday 26 October 2006 19:49, Shannon Hicks wrote: > > Yeah, this is a top candidate for a common custom component > we'll all > > need > > Here is the low down so far: It has to subclass DataGrid > rather than be a cell renderer or be based on DataGridColumn > because neither of these know which row and col. they are in. > > So far I've overriden drawSelectionIndicator() and > drawHightlightIndicator(), along with a private method to > figure out which one of listItems the mouse is over, and set a color. > This gives 'cell under mouse highlight', but it doesn't stay > right when clicked (I think the the underlying row is being > messed with), so I'm digging into more of DataGrid's > selection mechanism as we speak which I hope doesn't mean > ending up overriding drawItem() from ListBase. > > Ho hum :-) > > -- > Tom Chiverton > Helping to dynamically supply transparent convergence > -- 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/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> 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/

