if your trying to edit a cell directly (by clicking on the cell) on 
your datagrid, use the cellEdit event. this gets triggered if you 
make changes in an editable datagrid

eg
<mx:DataGrid cellEdit="doCellEdit(event)" editable="true">

import mx.events.DataGridEvent;

function doCellEdit(event:DataGridEvent):Void
{
 //do something.
}




--- In flexcoders@yahoogroups.com, "flexhtoo" <[EMAIL PROTECTED]> wrote:
>
> I want to create a datagrid in my application that is editable so i
> want to update data in gird. I can't trace what event trigger data
> change! I use to shown this data with data model. I was add data 
and
> update change in data grid. But its data not change
> 
> e.g
> 
> <mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml";
>     creationComplete="srv.send()">
> 
>       <mx:Script>
>               import mx.collections.ArrayCollection;
> 
>               [Bindable]
>               public var employees:ArrayCollection;
> 
>       </mx:Script>
>       <mx:HTTPService id="srv" url="../assets/employees.xml" 
useProxy="false" 
>               result="employees = new ArrayCollection
(srv.result.list.employee)"/>
> 
>       <mx:DataGrid id="emp" 
>               dataProvider="{employees}" width="300"
>               editable="false"
>               click="gridClick();">
>               <mx:columns>
>                       <mx:Array>
>                               <mx:DataGridColumn columnName="name" 
headerText="Name"/>
>                               <mx:DataGridColumn 
columnName="phone" headerText="Phone"/>
>                               <mx:DataGridColumn 
columnName="email" headerText="E-Mail"/>
> 
>                               <mx:DataGridColumn 
columnName="active" headerText="Active"/>
>                       </mx:Array>
>               </mx:columns>
>       </mx:DataGrid>
> 
> </mx:Application>
> 
> 
> ########################################3
> There are employees.xml in assets directory!
> 
> <?xml version="1.0" encoding="utf-8"?>
> 
> <list>
>     <employee>
>         <name>Christina Coenraets</name>
>         <phone>555-219-2270</phone>
>         <email>[EMAIL PROTECTED]</email>
>         <active>true</active>
>     </employee>
>     <employee>
>         <name>Louis Freligh</name>
>         <phone>555-219-2100</phone>
>         <email>[EMAIL PROTECTED]</email>
>         <active>true</active>
>     </employee>
>     <employee>
>         <name>Ronnie Hodgman</name>
>         <phone>555-219-2030</phone>
>         <email>[EMAIL PROTECTED]</email>
>         <active>false</active>
>     </employee>
> </list>
> 
> 
> 
> What events and how to change this data in run-time? 
> 
> Flexhtoo
>






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
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/
 


Reply via email to