Grid Flex



    
        
        import mx.collections.ArrayCollection;
        import mx.events.DataGridEvent;
        import mx.validators.EmailValidator;
        import mx.controls.TextInput;
        
        [Bindable]
        public var myAC:ArrayCollection = new ArrayCollection([
            {name:"a", email:"a@i.com"},
            {name:"b", email:"b@i.com"}]);
        
        private function onEditEnd(event:DataGridEvent):void
        {
            if(event.dataField == 'email'){
                 var fCell:Array=[event.columnIndex,event.rowIndex];
                 event.preventDefault();
                 callLater(maintainEdit,fCell);
            }
        }
        private function maintainEdit(colIndex:int,rowIndex:int):void {
            var editCell:Object = {columnIndex:colIndex, rowIndex:rowIndex};
            dg.editedItemPosition = editCell;
        }