WantsToLearn
Programmer
Hello everyone,
Let's say that I have the following query populating a combobox:
I have set the DataSource property to a DataTable from a DataSet and have also set the DisplayMember and ValueMember properties to CompanyName and CustomerID respectively.
If I have associated textboxes txtAddress, txtCity and txtState, can I bind them somehow to the additional columns in my query? If now, how is the best way to update them in the combobox's SelectedIndexChanged event? Thanks in advance!
Let's say that I have the following query populating a combobox:
Code:
Select CustomerID, CompanyName, Address, City, State From Customers
If I have associated textboxes txtAddress, txtCity and txtState, can I bind them somehow to the additional columns in my query? If now, how is the best way to update them in the combobox's SelectedIndexChanged event? Thanks in advance!