Dim loData As DataSet loData = New DataSet lcXML = loUT.GetForum() ImportXML(loData, lcXML) DataGrid.DataSource = loData DataGrid.DataMember = "Temp"So, at this point, the XML string returned from the Web Service is converted into a DataSet and the DataGrid is now bound to it. The data appears and all is ok.
Dim loData As DataSet loData = New DataSet loData = loUT.GetForumDataSet() DataGrid.DataSource = loData DataGrid.DataMember = "Temp"However, the Web Service need to be updated. So, I added a new method called GetForumDataSet() which is defined as this:
<WebMethod()> _ Public Function GetForumDataSet() As DataSet ' Get the XML string as before lcHtml=... ' However, in this method, we will now convert it into a DataSet Dim loData As DataSet loData=ImportXML(loData, lcHtml) Return loData End FunctionHowever, this doesn't work. Is there something I need to adjust on the Web Service or on the client side?