
January 4th, 2009, 08:55 AM
|
|
Registered User
|
|
Join Date: Jan 2009
Posts: 1
Time spent in forums: 26 m 28 sec
Reputation Power: 0
|
|
Databind data set from webservice to pocket pc dropdownlist
Hi guys. I would like to solve this problem for my project.
I am supposed to use a pocket pc in microsoft visual studio 2005 and develop a program that consume a webservice that return a dataset. The problem is dropdownlist only display one item from the dataset instead of the whole column
I named the webservice as server, this is my code, please help me to correct the problem.
Dim DataServer as new server.Service()
Dim ds as new Data.DataSet()
ds = DataServer.ReadAll() -> this webservice function return a dataset
Thus i use this line to insert the dataColumn into the dropdownlist
DropDownList1.Items.Add(ds.Table(0).Rows(0).Items( "Type"))
However with this line of code, dropdownlist1 will only display the first item from the data. How should i modify the code so it will display the whole item in that column??
Early thanks for the help though, Please reaching deadline and cant solve this problem, all the help appreciated guys
Last edited by donee1986 : January 8th, 2009 at 08:47 AM.
Reason: No response urgent needed for help
|