My item renderer is as follows:- ===================================code <?xml version="1.0" encoding="utf-8"?> <!-- itemRenderer for foldEdit --> <mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml" horizontalAlign="center"> <mx:Script> <![CDATA[ import mx.events.FlexEvent;
public var retValue:String; override public function set data(value:Object):void { if (value != null) { super.data=value; if (value.shastatus == "E") shared.selected=true; else shared.selected=false; } dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE)); } private function change():void { if (shared.selected == true) retValue="E" else retValue="D"; } ]]> </mx:Script> <mx:CheckBox id="shared" change="change();"/> </mx:HBox> ===================================code So are you saying I set up a:: Static Public var allowEdit:Boolian; :: in here and how do I define it from the Datagrid, do I have to include it and set an instance up of it, that doesn't sound right to me. - I'm only a beginner any code hints would be great.