Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trouble in DataRelation
Message
De
18/10/2005 19:44:45
 
 
À
18/10/2005 05:57:06
Glenwell Andal
Pdc Software Philippines
Quezon, Philippines
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Jet/Access Engine
Divers
Thread ID:
01059858
Message ID:
01060114
Vues:
16
Glen,

You should specify the DataSource for your child grid like this:
dgmain.DataSource = m_oTest.OleDataSet.Relations("sCombine").ParentTable
dgmain.DataMember = "sCombine"
~~Bonnie



>I make a "datarelation" into my two tables. It is working! But my problem was, I want to have a navigation toolbars(movfirst, movnext,.....) wherein the "parenttable" was bind to the textbox and the "childtable" was bind to datagrid. How can I do that..
>
>Part of code that has an error:
>
>txtFirstname.DataBindings.Add("Text", m_oTest.OleDataSet.Relations("sCombine").ParentTable, "Firstname")
>
>txtLastname.DataBindings.Add("Text", m_oTest.OleDataSet.Relations("sCombine").ChildTable, "Lastname")
>
>dgmain.DataSource = m_oTest.OleDataSet.Relations("sCombine").ChildKeyConstraint.RelatedTable <<<<<<<>>>>>>>*****
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform