You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/data-tools/pass-data-between-forms.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Pass data between forms (.NET Framework)
3
-
description: Pass data between Windows Forms in .NET Framework application development with Visual Studio and create a TableAdapter query to fetch customer orders.
3
+
description: Pass data between Windows Forms in .NET Framework application development with Visual Studio and create a TableAdapter query that fetches orders per customer.
This tutorial provides step-by-step instructions for passing data from one form to another. Using the Customers and Orders tables from the Northwind sample database, one form allows users to select a customer, and a second form displays the selected customer's orders. This tutorial shows how to create a method on the second form that receives data from the first form.
27
+
This tutorial provides step-by-step instructions for passing data from one form to another. By using the Customers and Orders tables from the Northwind sample database, one form allows users to select a customer, and a second form displays the selected customer's orders. This tutorial shows how to create a method on the second form that receives data from the first form.
28
28
29
29
In this tutorial, you complete the following tasks:
30
30
31
31
- Create a new **Windows Forms App (.NET Framework)** project.
32
32
- Create and configure a dataset by using the **Data Source Configuration Wizard**.
33
33
- Select the control to create on the form when you drag items from the **Data Sources** window. For more information, see [Set the control to be created when dragging from the Data Sources window](set-the-control-to-be-created-when-dragging-from-the-data-sources-window.md).
34
34
- Create a data-bound control by dragging items from the **Data Sources** window onto a form.
35
-
- Create a second form with a grid to display data.
35
+
- Create a second form with a grid that displays data.
36
36
- Create a `TableAdapter` query to fetch orders for a specific customer.
37
37
- Pass data between forms.
38
38
@@ -129,7 +129,7 @@ Add a `TableAdapter` query to Form2 that loads orders for the customer selected
129
129
130
130
1. Leave the default option of **SELECT which returns rows** and select **Next**.
131
131
132
-
1. In **What data should the table load**, to return `Orders` based on the `CustomerID`, add a `WHERE` clause to the end of the query. The query should look similar to the following:
132
+
1. In **What data should the table load**, to return `Orders` based on the `CustomerID`, add a `WHERE` clause to the end of the query. The final query should look similar to the following code:
0 commit comments