Here is a simple scenario
There is a form with a the following objects on it:
a dataset called MyDataSet
a tableadapter called CustomersTableAdapter
CustomersTableAdapter has two methods, .Fill which returns all customers in the Customers table and .FillActive which returns all customers with open orders only.
a bindingsource called bsCustomers
a 2 page tabpage control on it.
tabpage 1 has a combobox bound to bsCustomers with displaymember being CustomerName
Now this is where I get confused?
The setup above works and I see all customers in the combobox.
Now when I change to tabpage 2 I want the combobox on this tabpage to list the data returned by the CustomersTableAdapter.FillActive method.
But does this mean that the table Customers in the dataset MyDataSet will now only show active customers? When I go back to tabpage 1 will that combobox now be showing the wrong data?
The more I try to get my head around this the more I get confused.
I dont know if I should have multiple bindingsources/tableadapters or create new datasets or what and if so how to link them all together
There is a form with a the following objects on it:
a dataset called MyDataSet
a tableadapter called CustomersTableAdapter
CustomersTableAdapter has two methods, .Fill which returns all customers in the Customers table and .FillActive which returns all customers with open orders only.
a bindingsource called bsCustomers
a 2 page tabpage control on it.
tabpage 1 has a combobox bound to bsCustomers with displaymember being CustomerName
Now this is where I get confused?
The setup above works and I see all customers in the combobox.
Now when I change to tabpage 2 I want the combobox on this tabpage to list the data returned by the CustomersTableAdapter.FillActive method.
But does this mean that the table Customers in the dataset MyDataSet will now only show active customers? When I go back to tabpage 1 will that combobox now be showing the wrong data?
The more I try to get my head around this the more I get confused.
I dont know if I should have multiple bindingsources/tableadapters or create new datasets or what and if so how to link them all together