Have your combobox cell renderer on change update the data grid's dataProvider. Use editField. There is an example using a checkbox renderer in the Flex Samples.
Then reference it through dgLocationInfo.selectedItem.LocState. Tracy -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of mrvinedit Sent: Tuesday, January 24, 2006 11:27 AM To: [email protected] Subject: [flexcoders] How to reference the State selected in a Comboxbox cellRenderer in a Datagrid? For some reason I'm drawing a blank on the correct syntax for this. I can do this all day with a "standalone combobox", but missing the way to reference it from within a datagrid. :-) <mx:Script> <![CDATA[ mx.controls.Alert.show("State selected is " + dgLocationInfo.selectedItem.LocState.?); ]]> </mx:Script> <mx:DataGrid id="dgLocationInfo"> <mx:columns> <mx:Array> <mx:DataGridColumn headerText="State" columnName="LocState" editable="false" cellRenderer="StateCombo" width="120"/> </mx:Array> </mx:columns> </mx:DataGrid> cellRenderer: <?xml version="1.0" encoding="utf-8"?> <mx:ComboBox xmlns:mx="http://www.macromedia.com/2003/mxml" width="100"> <mx:dataProvider> <mx:Array> <mx:Object label="Alabama" data="AL" /> <mx:Object label="Texas" data="TX" /> </mx:Array> </mx:dataProvider> </mx:ComboBox> -- 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 -- 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/

