My dataset isn't bound to the database. I use datareaders and dataAdapters to manage that, so the dataset is not bound. I Created my dataset in my project with the designer which saves the dateset as a class. I can then declare a ds in my code as the type in my project and it is recognized by the designer.
You do know what the data is going to look like comming from the XML result set right? Create a dataset that will be used to hold the data. Then use a reader to map the data into the dataset.
I haven't used it, but understand that there are objects and methods for reading XML into a dataset.
hth,
~dab
>>Let me add, the ds I declared exixts in the project, so I declared it of a known type. Code looks like this:
>>
>>Protected WithEvents ds as ClosingAgents.ds
>>
>>In the Sub InitializeComponemts:
>>
>>Me.ds = New ClosingAgents.ds()
>>CType(Me.DS,System.ComponentModel.ISupportInitialize).BeginInit()
>>
>>I think that is all the code.
>
>You probably have a DataSet bound to a SQL Server database or similar. In my case, I want to create a DataSet based on an XML result from a Web Service. Once I received the XML string, I convert it into a DataSet. However, from the designer, it doesn't recognizes that as a DataSet as it'd only be built at run time.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement