Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to link DataGridViews in VB .NET

Posted on 2013-01-02
3
Medium Priority
?
291 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
plusone3055 earned 2000 total points
ID: 38737051
0
 

Author Closing Comment

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

Featured Post

Give Your Engineering Team a Productivity Boost

Learn why container technology is so powerful and how it can provide your team with productivity gains and other benefits.

Question has a verified solution.

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

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…
In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

705 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