This is what i do:

var myCollection:ArrayCollection;
var myTable:Object = event.result.diffgram.NewDataSet.Table;

if (myTable is ArrayCollection)
myCollection = myTable as ArrayCollection;
else
myCollection= new ArrayCollection( [ myTable ] );

myDataGrid.dataProvider = myColleciton;

- Kelly


subeesh a wrote:
> Hi All,
> I am using a .NET web service to populate datagrid. I am converting 
> the result of the web service call to arraycollection and bind it to 
> the datagrid.
> The issue is that when there is only one data in the database, the 
> data grid is not showing up anything.
> I have analyzed the event tree of the web service call.In the case of 
> more than one record, the event object is like
> event.result.diffgram.NewDaraSet.Table[0]..
> event.result.diffgram.NewDaraSet.Table[1]..
> event.result.diffgram.NewDaraSet.Table[0]..
> in the case of database with only one record, the event object is like
> event.result.diffgram.NewDaraSet.Table
> How can i bind the data to the datagrid in this case
> Thanks Subeesh
>
> ------------------------------------------------------------------------
> Here’s a new way to find what you're looking for - Yahoo! Answers 
> <http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/> 
>  



--
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/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> 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