columnName can be "Name" and headerText can be "Column 1".  You could
also use a labelFunction if you really needed to.

Matt

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of sathish_kumar_18
Sent: Tuesday, February 21, 2006 1:47 AM
To: [email protected]
Subject: [flexcoders] Binding Data to DataGrid from webservice response

 
How to bind data from webservice response...
if the column name in the grid is different and child tag in response 
is different...
i cannot able to loop through the data because the response would 
contains huge data of 20000 rows..
 
 
example 
if webservice response is 
    <response>
            <data>
                    <Name>sathish</Name>
                    <Address>Chennai</Address>
            </data>
            <data>
                    <Name>selva</Name>
                    <Address>delhi</Address>
            </data>
    </response>
 
 
 
 
    <mx:VBox>  
      <mx:DataGrid id="dg1" dataProvider="{response.data}">
         <mx:columns>
            <mx:Array>
               <mx:DataGridColumn columnName="Column1" />
               <mx:DataGridColumn columnName="Column2" />
            </mx:Array>
         </mx:columns>   
    </mx:DataGrid>
</mx:VBox>
 
 
regards
sathish





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to