Thanks a lot Kelly, That really works!!
----- Original Message ---- From: Kelly Birr <[EMAIL PROTECTED]> To: [email protected] Sent: Monday, 12 March, 2007 5:32:50 PM Subject: Re: [flexcoders] Data Grid and .NET web Service Issue 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 > > ------------------------------------------------------------------------ > Heres 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 __________________________________________________________ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/

