Hi Samina,

Here's a sample. Is this what you were looking for ? 

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; 
layout="absolute">
<mx:Array id="myArr">
        <mx:String> one </mx:String>
        <mx:String> two </mx:String>
        <mx:String> three </mx:String>
        <mx:String> four </mx:String>
        <mx:String> five </mx:String>                   
</mx:Array>
        <mx:PrintDataGrid dataProvider="{myArr}">
                <mx:columns>
                        <mx:DataGridColumn headerText="My Strings"/>
                </mx:columns>
                
        </mx:PrintDataGrid>
</mx:Application>

Regards,
Asgar.

Reply via email to