DataGrid Dropin Editor
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="#EEEEEE" creationComplete="initApp()"> <mx:Script> private function initApp():void { for (var i:int=0;i < contactAC.length; i++) { var contact:Object = contactAC.getItemAt(i); contact.selected=false; } } </mx:Script> <mx:Model id="contactData"> <contacts> <row> <contactid>5</contactid> <firstname>A</firstname> <lastname>B</lastname> <streetaddress>Main Street</streetaddress> <city>My City</city> <state>MS</state> <email>a@t.com</email> <phone>000-555-1111</phone> <dob>6/23/2010</dob> </row> </contacts> </mx:Model> <mx:ArrayCollection id="contactAC" source="{contactData.row}"/> <mx:DataGrid id="contactGrid" dataProvider="{contactAC}" editable="true" selectable="false"> <mx:columns> <mx:DataGridColumn dataField="selected" itemRenderer="mx.controls.CheckBox" rendererIsEditor="true" editorDataField="selected" headerText="" width="50"/> <mx:DataGridColumn dataField="firstname" headerText="First Name" width="100" editable="false"/> <mx:DataGridColumn dataField="lastname" headerText="Last Name" width="100" editable="true"/> </mx:columns> </mx:DataGrid> </mx:Application>