Composite component containing a PrintDataGrid : PrintDataGrid « Components « Flex






Composite component containing a PrintDataGrid

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

1.Custom component based of a PrintDataGridCustom component based of a PrintDataGrid
2.Print DataGrid out from Hiden PrintDataGridPrint DataGrid out from Hiden PrintDataGrid