I'm trying fill a List box from a DataSet. It's for a WebClient. Below is the code I have. I can get it to come up with System.DataRow.DataRow.View in all the selections. If I go to the listbox DataBindings property and select the binding. I come up with my tables contents but each letter of the first column is on each line. IE, "Change" shows up C then H then A and so on as I progress down the listbox.
From Web Form
'Get exsisting reports from Database
Dim ws As New ReportWebClient.localhost.ReportService
ws.Credentials = System.Net.CredentialCache.DefaultCredentials
ReportData.Merge(ws.GetReport())
DataGrid1.DataBind()
'Get downtime codes for list box
CodesData.Merge(ws.GetCodes())
downtimeList.DataBind()
From Web Sevice
<WebMethod()> Public Function GetCodes() As codes1
Dim codes As New codes1
OleDbDataAdapter2.Fill(codes)
Return codes
End Function
From Web Form
'Get exsisting reports from Database
Dim ws As New ReportWebClient.localhost.ReportService
ws.Credentials = System.Net.CredentialCache.DefaultCredentials
ReportData.Merge(ws.GetReport())
DataGrid1.DataBind()
'Get downtime codes for list box
CodesData.Merge(ws.GetCodes())
downtimeList.DataBind()
From Web Sevice
<WebMethod()> Public Function GetCodes() As codes1
Dim codes As New codes1
OleDbDataAdapter2.Fill(codes)
Return codes
End Function