Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to create a relationship between 2 datasets
Message
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Titre:
How to create a relationship between 2 datasets
Divers
Thread ID:
00706450
Message ID:
00706450
Vues:
71
All,

I am trying to establish a relationship between 2 datasets. First I download the 2 datasets
DataSet1 = RetrieveComponets();
DataSet2 - RetreiveValidators();
The two tables are linked by the data in column[0] in each of the 2 datasets.

To set a relationship between 2 tables, they need to be in the same dataset. How Do I add DataSet2 to DataSet1 above so that the following will work:
DataSet1.Relations.Add("DS1relatestoDS2", DataSet1.Tables[0].Columns[0], DataSet2.Tables[1].Columns[0]);
This should be easy - I'm missing something.
TIA,
Doug
Douglas Osborne
Don't spend your life just wishing - http://www.AllGiftRegistry.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform