Composite component containing a PrintDataGrid

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical" backgroundColor="white">
<mx:VBox>
<mx:Script>
import mx.collections.ArrayCollection;
[Bindable]
public var printAC:ArrayCollection;
</mx:Script>
<mx:Image source="@Embed(source='a.png')" />
<mx:PrintDataGrid id="pdg" dataProvider="{printAC}">
<mx:columns>
<mx:DataGridColumn dataField="firstName" headerText="First Name" />
<mx:DataGridColumn dataField="lastName" headerText="Last Name" />
</mx:columns>
</mx:PrintDataGrid>
</mx:VBox>
</mx:Application>
Related examples in the same category