I have a flex 2 application with a datagrid. I want to kick off a function when a row in the datagrid receives focus.
So I'm trying to use the itemFocusIn event, as described here: http://livedocs.macromedia.com/flex/2/langref/mx/controls/DataGrid.html#event:itemFocusIn Here's my MXML: <mx:DataGrid width="500" left="10" top="40" bottom="10" id="dgMoves" dataProvider="{ro.getMoves.lastResult}" itemFocusIn="showDetails(event);"> Here's my function: public function showDetails(e:mx.events.DataGridEvent):void { var row:Object = dgMoves.dataProvider[e.rowIndex]; Alert.show(row.toString(),'row',Alert.OK); } No There are no compilation errors, but the showDetails() function doesn't get called when items in the datagrid recevie focus. A simple google search for "flex itemFocusIn" yields nothing useful ( http://www.google.com/search?q=flex+itemFocusIn ) Is there another event I should be using? Rick -- 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/

