FlexDataGridデータバインディング
サンプルコード:
[Bindable]
private var egXMLListCollection:XMLListCollection;
protected function application1_creationCompleteHandler(event:FlexEvent):void
{
egXMLListCollection=new XMLListCollection(egXML.TEST);
}
<s:DataGrid id="TestDataGrid"
width="100%"
height="100%"
dataProvider="{egXMLListCollection}">
<s:columns>
<s:ArrayList>
<s:GridColumn dataField="TESTCOLUMN1″
headerText="列1″>
</s:GridColumn>
<s:GridColumn dataField="TESTCOLUMN2″
headerText="列2″>
</s:GridColumn>
<s:GridColumn dataField="TESTCOLUMN3″
headerText="列3″>
</s:GridColumn>
<s:GridColumn dataField="TESTCOLUMN4″
headerText="列4″>
</s:GridColumn>
</s:ArrayList>
</s:columns>
</s:DataGrid>