Solved

How to link DataGridViews in VB .NET

Posted on 2013-01-02
3
276 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 Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
JSON Deserialize issue 6 40
Get month and date in a format 4 45
IDE for Python 5 68
Activating .NET Framework 3.5 and which option to choose 5 29
It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

749 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