Using this tutorial How Do I: Create a One-to-Many Data Entry Form? as a reference
Suppose I have a parameter query called FillByStatus in my "Customer" DataTable and I want to fill the CustomerTableAdapter On Form_Load using this query. So I can do that by using the following code:
However, when I do that my related DataGridView (orders) is empty, how do I make it so that doesn't happen?
Thanks in advance.
Suppose I have a parameter query called FillByStatus in my "Customer" DataTable and I want to fill the CustomerTableAdapter On Form_Load using this query. So I can do that by using the following code:
VB.NET:
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) _
Handles MyBase.Load
Me.OrdersTableAdapter.Fill(Me.CustomerOrdersDataSet.Orders)
Me.CustomerTableAdapter.FillByStatus(Me.CustomerOrdersDataSet.Customer, "Active")
End Sub
However, when I do that my related DataGridView (orders) is empty, how do I make it so that doesn't happen?
Thanks in advance.