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
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ In this tutorial, you complete the following tasks:
61
61
62
62
1. Select either **C#** or **Visual Basic** from the **All languages** dropdown list, **Windows** from the **All platforms** dropdown list, and **Desktop** from the **All project types** list.
63
63
64
-
1. Select **Windows Forms App (.NET Framework)**, and then select **Next**.
64
+
1. Select **Windows Forms App (.NET Framework)** from the project templates list, and then select **Next**.
65
65
66
66
1. Name the project **PassingDataBetweenForms**, select **Next**, and then select **Create**.
67
67
@@ -77,7 +77,7 @@ The **PassingDataBetweenForms** project is created and added to **Solution Explo
77
77
78
78
1. On the **Choose a Database Model** page, verify that **Dataset** is specified and select **Next**.
79
79
80
-
1. On the **Choose Your Data Connection** page, if a data connection to the Northwind sample database is available, select it, and proceed to the **Choose your Database Objects** step. Otherwise, select **New Connection**.
80
+
1. On the **Choose Your Data Connection** page, if a data connection to the Northwind sample database is already available, select it, and proceed to the **Choose your Database Objects** step. Otherwise, select **New Connection**.
81
81
82
82
1. On the **Choose Data Source** screen, select **Microsoft SQL Server Database File**, and then select **Continue**.
83
83
@@ -99,9 +99,9 @@ The **NorthwindDataSet** is added to your project, and the **Customers** and **O
99
99
100
100
## Populate the first form
101
101
102
-
To create a data-bound grid, drag the **Customers** node from the **Data Sources** window onto **Form1**.
102
+
-To create a data-bound grid, drag the **Customers** node from the **Data Sources** window onto **Form1**.
103
103
104
-
A <xref:System.Windows.Forms.DataGridView> control and a (<xref:System.Windows.Forms.BindingNavigator>) tool strip for navigating records appear on **Form1**. A [NorthwindDataSet](dataset-tools-in-visual-studio.md), `CustomersTableAdapter`, <xref:System.Windows.Forms.BindingSource>, and <xref:System.Windows.Forms.BindingNavigator> appear in the component tray.
104
+
A <xref:System.Windows.Forms.DataGridView> control and a <xref:System.Windows.Forms.BindingNavigator> tool strip for navigating records appear on **Form1**. A [NorthwindDataSet](dataset-tools-in-visual-studio.md), `CustomersTableAdapter`, <xref:System.Windows.Forms.BindingSource>, and <xref:System.Windows.Forms.BindingNavigator> appear in the component tray.
105
105
106
106
## Create the second form
107
107
@@ -113,9 +113,9 @@ Create a second form to pass data to.
113
113
114
114
1. Drag the main **Orders** node from the **Data Sources** window onto **Form2**.
115
115
116
-
A <xref:System.Windows.Forms.DataGridView> and a tool strip (<xref:System.Windows.Forms.BindingNavigator>) for navigating records appear on **Form2**. A [NorthwindDataSet](dataset-tools-in-visual-studio.md), `CustomersTableAdapter`, <xref:System.Windows.Forms.BindingSource>, and <xref:System.Windows.Forms.BindingNavigator> appear in the component tray.
116
+
A <xref:System.Windows.Forms.DataGridView> and a <xref:System.Windows.Forms.BindingNavigator> tool strip for navigating records appear on **Form2**. A [NorthwindDataSet](dataset-tools-in-visual-studio.md), `CustomersTableAdapter`, <xref:System.Windows.Forms.BindingSource>, and <xref:System.Windows.Forms.BindingNavigator> appear in the component tray.
117
117
118
-
1. Delete the **OrdersBindingNavigator** from the component tray. The **OrdersBindingNavigator** disappears from **Form2**.
118
+
1. Delete the **OrdersBindingNavigator** from the component tray. The **BindingNavigator** disappears from **Form2**.
119
119
120
120
## Add a TableAdapter query
121
121
@@ -167,7 +167,7 @@ Add a `TableAdapter` query to Form2 that loads orders for the customer selected
167
167
168
168
1. In the **Properties** window, select the **Events** icon in the top toolbar.
169
169
170
-
1. Double-click the **DoubleClick** event.
170
+
1. Double-click the **DoubleClick** event to open the code editor.
171
171
172
172
1. In the code editor, update the method definition to match the following sample:
0 commit comments