Solved

How to link DataGridViews in VB .NET

Posted on 2013-01-02
3
243 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 to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now