Solved

How to link DataGridViews in VB .NET

Posted on 2013-01-02
3
269 Views
Last Modified: 2013-01-03
Hello,

I have 2 tables which contains Orders and ProductOrders, the table ProductOrders has the OrderID as Foreign Key.

Ordertable:
ID            OrderNo             Client            Date
1               123                     X                    01-01-2013
2               135                     Y                    01-01-2013

ProductOrders:
ID              OrderID            ProductName        Ordered
1                1                       Bike                         2
2                1                       Wheels                    2
3                2                       Steering                  1
4                2                       Brakes                     3

I have build a Form with 2 Datagridviews which are linked to datasets which are filled thru a Dataset adapter. DataGrid1 contains the Orders, and DataGrid2 contains the ProductOrders. How can i link the Datagrids to each other so that when i select order1 in Datagrid1, Datagrid2 shows the ProductOrders of the selected order?

Can anyone point me to an example?
0
Comment
Question by:marco_greven
  • 2
3 Comments
 
LVL 22

Expert Comment

by:plusone3055
ID: 38737046
0
 
LVL 22

Accepted Solution

by:
plusone3055 earned 500 total points
ID: 38737051
0
 

Author Closing Comment

by:marco_greven
ID: 38739957
Thanks for the link...
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question