Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find method of DataRowCollection
Message
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
00698365
Message ID:
00699758
Vues:
16
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
Fil
Voir

Click here to load this message in the networking platform