[RESOLVED] [2005] Filling a typed dataset
Hello,
I have a typed dataset.
I am trying to fill the typed dataset from a datset that is returned from a web service.
Code:
Me.DsOrders.customers = ws.getCustomers()
However, the error message I get is: "customer table is read-only"
Is there any way you can fill a typed dataset table like this. This works fine with a untyped dataset. However, I have already done this project using typed and too late to change now.
Many thanks for an suggestions.
Steve
Re: [2005] Filling a typed dataset
You don't assign anything to a table in a typed DataSet. The table already exists so you either populate it:
vb.net Code:
myTableAdapter.Fill(myDataSet.SomeTable)
or you get a loose DataTable and don't use a DataSet at all:
vb.net Code:
Dim table As SomeDataTable = myTableAdapter.GetData()