Use item editors
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="white">
<mx:Script>
import mx.collections.ArrayCollection;
[Bindable]
public var myAC:ArrayCollection = new ArrayCollection([
{name:"a", email:"a@i.com"},
{name:"b", email:"b@i.com"}]);
</mx:Script>
<mx:DataGrid id="dg" width="150" height="100" dataProvider="{myAC}" editable="true">
<mx:columns>
<mx:DataGridColumn headerText="Name" dataField="name" />
<mx:DataGridColumn headerText="EMail" dataField="email" editable="false" />
</mx:columns>
</mx:DataGrid>
</mx:Application>
Related examples in the same category