I have a typed dataset with a customers table. here is some code for reference
Private custTA As New MyDS.CustomersTableAdapter
cbxCustomers.DataSource = custTA.GetData()
cbxCustomers.DisplayMember = "CustName"
cbxCustomers.ValueMember = "CustID"
I insert a new customer by calling a stored procedure.
custTA.InsertCustomer( "Name","Address")
Whats the best way to refresh the combobox which is bound to the table?
Private custTA As New MyDS.CustomersTableAdapter
cbxCustomers.DataSource = custTA.GetData()
cbxCustomers.DisplayMember = "CustName"
cbxCustomers.ValueMember = "CustID"
I insert a new customer by calling a stored procedure.
custTA.InsertCustomer( "Name","Address")
Whats the best way to refresh the combobox which is bound to the table?