B
BS
Hello everybody
I'm calling a webservice that returns complex data.
The goal is to populate a datagrid with it.
Using a loop for each record found ( such as For i = 0 To
oResponse.historicalData.Length - 1 )
no problem to load a datagrid.
However, when I try to bind directly the datasource to the web service
complex datatype, I have the following error:
Complex DataBinding accepts as a data source either an IList or an
IListSource
Any idea what I have to do to the webservice records in order for my
datagrid to load ?
Here is the code used to pupulate the grid.
Dim oES As SomeWebservice.EquipmentService = New
SomeWebservice.EquipmentService
Dim oResponse As SomeWebservice.responseHistoricalData = New
SomeWebservice.responseHistoricalData
'set response object with service response
oResponse = oES.historicalData(oRequest)
DataGrid1.DataSource = oResponse
I'm calling a webservice that returns complex data.
The goal is to populate a datagrid with it.
Using a loop for each record found ( such as For i = 0 To
oResponse.historicalData.Length - 1 )
no problem to load a datagrid.
However, when I try to bind directly the datasource to the web service
complex datatype, I have the following error:
Complex DataBinding accepts as a data source either an IList or an
IListSource
Any idea what I have to do to the webservice records in order for my
datagrid to load ?
Here is the code used to pupulate the grid.
Dim oES As SomeWebservice.EquipmentService = New
SomeWebservice.EquipmentService
Dim oResponse As SomeWebservice.responseHistoricalData = New
SomeWebservice.responseHistoricalData
'set response object with service response
oResponse = oES.historicalData(oRequest)
DataGrid1.DataSource = oResponse