Bound Combo Box with Bound Text Box SQL Database
Posted on 2008-10-20
I have a bound combo box to an sql database, and I have several bound text boxes that are also bound / vis the data bindings in it's properties. Currently I can pick my client A in my combo box and client B in my text box works fine. However, the text boxes default to client A's address since it is bound to the address.
Here is what I want..
The text box to be empty and when the client A or client B is selected, would like the text boxes to be updated. I think I do not what to bind the text box through the properties, instead code the following event to update the text boxes with the appropriate information. Not sure how to do this exactly and not sure if there is a standardized way this should be done.
private void MyComboBox1_SelectedIndexChanged(object sender, EventArgs e)