Hi,
I was able to get the Find working for me. My problem was related to remoting and the fact that remote objects return untyped datasets. I had to build a .vb class file that defined the strongly typed dataset, then create a strongly type dataset using the merge command. Once I created strongly typed table and row objects, the find method worked.
Thanks for all your help.
Here's a sample:
Dim dsData As New DataSet
Dim dsStrong As New StonglyTypedDataSet()
dsData = remoteObject.ReturnDataSet()
dsStrong.Merge(dsData)
Dim row As StronglyTypedDataSet.FooRow
Dim tbl As StronglyTypedDataSet.FooTable
tbl = dsStrong.Tables("Foo")
row = tbl.FindByPrimaryKey(PrimaryKey)
Précédent
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