| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| --> |
| <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" > |
| <mx:Script> |
| <![CDATA[ |
| |
| import mx.collections.*; |
| import mx.formatters.DateFormatter; |
| [Bindable] |
| public var mydata:ArrayCollection = new ArrayCollection([ |
| {col1:111, col2:98765432, col3:433764538}, |
| {col1:546, col2:34567890, col3:456789002}, |
| {col1:123, col2:32145678, col3:456712340}, |
| {col1:511, col2:21344321, col3:456782313}, |
| {col1:444322, col2:67854367, col3:321456789} ]); |
| ]]> |
| </mx:Script> |
| |
| <mx:AdvancedDataGrid id="mydatagrid" dataProvider="{mydata}" resizableColumns="true" editable="true" > |
| <mx:columns> |
| <mx:AdvancedDataGridColumn headerText="Column 1" id="col1" dataField="col1"/> |
| <mx:AdvancedDataGridColumn headerText="Column 2" id="col2" dataField="col2"/> |
| <mx:AdvancedDataGridColumn headerText="Column 3" id="col3" dataField="col3"/> |
| </mx:columns> |
| </mx:AdvancedDataGrid> |
| </mx:VBox> |