No, you never want to do that.
You need to have your renderer update the dataProvider item, then get the data from the dataProvider. Do not attempt to create an interactive itemRenderer from scratch. Find an example and modify it for your purpose. Tracy Spratt, Lariat Services, development services available _____ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of creativepragmatic Sent: Tuesday, September 01, 2009 12:01 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Accessing DataGridColumn item renderer variable Hello Everyone, Within a DataGrid, I have a DataGridColumn that uses a custom component as the item renderer. Within the component, I have an ArrayCollection that stores a set of value objects. My problem is that I cannot access the ArrayCollection values from outside of the item renderer component. Does anyone know how it would be possible to do this? I have posted a code snippet below. <mx:Script> <![CDATA[ // Cannot access arrFiles from here. ]]> </mx:Script> <mx:DataGrid editable="true"> <mx:columns> <mx:DataGridColumn id="dgcUpload" width="130" headerText="Uploaded Files" editable="false"> <mx:itemRenderer> <mx:Component> <mx:VBox> <mx:Script> <![CDATA[ [Bindable]public var arrFiles:ArrayCollection = new ArrayCollection(); ]]> </mx:Script> </mx:VBox> </mx:Component> </mx:itemRenderer> </mx:DataGridColumn> </mx:columns> </mx:DataGrid> Is this possible? Thank you in advance for any assistance, Orville