That is not the correct use of an item editor. Instead, you should set the DataGridColumn.editorDataField property and listen for the itemEditEnd event. In your item renderer, you would then create a public getter method by the same name as the editorDataField to retrieve cbItemRenderer.getSelectedItem().label. I'm pretty sure you will also need a getter method to set the correct selectedIndex of the ComboBox.
Here are some examples here: http://livedocs.adobe.com/flex/3/html/help.html?content=celleditor_8.html Best Regards, ~Aaron On Thu, Mar 27, 2008 at 10:38 AM, jeffreyr6915 <[EMAIL PROTECTED]> wrote: > I know that if you want to communicate with the main application from > within the itemRenderer component, you have to use "outerDocument" > first...Example: > > <mx: DataGridColumn dataField="field" headerText="col1" > editorDataField="text" editable="true"> > > <mx: itemRenderer> > <mx: Component> > <mx:ComboBox dataProvider="{outerDocument.myXml.info}" > change="myMethod(dg.instanceIndex)" id="cbItemRenderer"/> > </mx: Component> > </mx: itemRenderer> > > </mx: DataGridColumn> > > My question is: > ---How do you communicate with an itemRenderer from within the main > application? It seems like the main app does not have scope to the > itemRenderer, because when I add an id attribute to the <mx:ComboBox> > tag, I cannot refer to it...Example: > > cbItemRenderer.getSelectedItem().label) > > Thanks > > > -- Aaron Miller Chief Technology Officer Open Base Interactive, LLC. [EMAIL PROTECTED] http://www.openbaseinteractive.com