Returning data from an item editor
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
import mx.collections.ArrayCollection;
[Bindable]
private var myData:ArrayCollection = new ArrayCollection([
{dataField1:"Order #1", dataField2:3, BooleanValueColumn:true},
{dataField1:"Order #2", dataField2:3, BooleanValueColumn:false}
]);
</mx:Script>
<mx:DataGrid id="myDG" dataProvider="{myData}"
variableRowHeight="true" editable="true">
<mx:columns>
<mx:DataGridColumn dataField="dataField1" headerText="Order #" />
<mx:DataGridColumn dataField="dataField2" itemEditor="mx.controls.NumericStepper" editorDataField="value" />
</mx:columns>
</mx:DataGrid>
</mx:Application>
Related examples in the same category