PDA

View Full Version : [AS3] manipulate data with itemEditEnd in dataGrid


vlad2005
05-21-2007, 04:41 PM
i have an dataGrid component with itemEditEnd event and an function that i want to use for verify user input

private function myChange(event:DataGridEvent):void{
//
}

How i can acces data introduced by the user?
My dataGrid is:

<mx:DataGrid x="287" y="79" id="myDataGrid"
dataProvider="{initData}"
itemEditEnd="{myChange(event)}"
editable="true">
<mx:columns>
<mx:DataGridColumn headerText="Column 1" dataField="first" editable="false"/>
<mx:DataGridColumn headerText="Column 2" dataField="last"/>
</mx:columns>
</mx:DataGrid>