Skip to content

Commit df3dda0

Browse files
committed
final touchups
1 parent 7b8470a commit df3dda0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/data-tools/pass-data-between-forms.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
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.
44
ms.date: 04/22/2025
55
ms.topic: how-to
66
dev_langs:
@@ -24,15 +24,15 @@ ms.subservice: data-tools
2424

2525
[!INCLUDE [Data access tech note](./includes/data-technology-note.md)]
2626

27-
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.
2828

2929
In this tutorial, you complete the following tasks:
3030

3131
- Create a new **Windows Forms App (.NET Framework)** project.
3232
- Create and configure a dataset by using the **Data Source Configuration Wizard**.
3333
- 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).
3434
- 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.
3636
- Create a `TableAdapter` query to fetch orders for a specific customer.
3737
- Pass data between forms.
3838

@@ -129,7 +129,7 @@ Add a `TableAdapter` query to Form2 that loads orders for the customer selected
129129

130130
1. Leave the default option of **SELECT which returns rows** and select **Next**.
131131

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:
133133

134134
```sql
135135
SELECT OrderID, CustomerID, OrderDate, RequiredDate, ShippedDate, ShipVia, Freight, ShipName, ShipAddress, ShipCity, ShipRegion, ShipPostalCode, ShipCountry

0 commit comments

Comments
 (0)