ArrayCollection and AdvancedDataGrid
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
import mx.collections.ArrayCollection;
[Bindable]
private var dpADG:ArrayCollection = new ArrayCollection([
{Artist:'A', Album:'aa', Price:1.99},
{Artist:'B', Album:'bb', Price:1.99},
{Artist:'T', Album:'tt', Price:10.99}
]);
</mx:Script>
<mx:AdvancedDataGrid width="100%" height="100%" dataProvider="{dpADG}">
<mx:columns>
<mx:AdvancedDataGridColumn dataField="Artist" />
<mx:AdvancedDataGridColumn dataField="Album" />
<mx:AdvancedDataGridColumn dataField="Price" />
</mx:columns>
</mx:AdvancedDataGrid>
</mx:Application>
Related examples in the same category