<?xml version="1.0" encoding="UTF-8" standalone="no"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" verticalGap="0" xmlns:local="*" height="500" > <mx:Script> <![CDATA[ private var arr:Array = [ { firstName: "Alex", lastName: "Harui" }, { firstName: "Gordon", lastName: "Smith" }, { firstName: "Deepa", lastName: "Subramanian" }, { firstName: "Matt", lastName: "Chotin" }, { firstName: "Ely", lastName: "Greenfield" }, { firstName: "Kevin", lastName: "Lynch" }, { firstName: "Shantanu", lastName: "Narayan" }, { firstName: "Joan", lastName: "Lafferty" }, { firstName: "Ryan", lastName: "Frishberg" }, { firstName: "Jason", lastName: "Szeto" }, { firstName: "Mark", lastName: "Anders" }, { firstName: "Peter", lastName: "Flynn" }, { firstName: "Heidi", lastName: "Williams" }
];
]]> </mx:Script> <local:DoubleClickDataGrid id="dg" initialize="dg.dataProvider=arr" editable="true"> <local:columns> <mx:DataGridColumn dataField="firstName" headerText="First Name" /> <mx:DataGridColumn dataField="lastName" headerText="Last Name" /> </local:columns> </local:DoubleClickDataGrid> </mx:Application>
|