private void cboPickList_SelectedIndexChanged(object sender, EventArgs e) { _SelectedAddressKey = cboPickList.SelectedKey; _SelectAddress(); }The _SelectAddress() method has:
private void _SelectAddress() { // PK of the Address Type Key record int AddressTypeKey = cboPickList.SelectedKey; // Clear out the fields on the control txtStreet1.Text = ""; txtStreet2.Text = ""; txtCity.Text = ""; txtState.Text = ""; txtZipCode.Text = ""; // Find the Address class in the collection foreach (Address address in _Addresses) { if (address.AddressTypeKey == AddressTypeKey) { // Clear and rebind the addresss class to the fields on the control txtStreet1.DataBindings.Clear(); txtStreet2.DataBindings.Clear(); txtCity.DataBindings.Clear(); txtState.DataBindings.Clear(); txtZipCode.DataBindings.Clear(); txtStreet1.DataBindings.Add("Text", address, "Street1"); txtStreet2.DataBindings.Add("Text", address, "Street2"); txtCity.DataBindings.Add("Text", address, "City"); txtState.DataBindings.Add("Text", address, "State"); txtZipCode.DataBindings.Add("Text", address, "PostalCode"); break; } } txtStreet1.Focus(); }This works fine for when the user selects an address type that exists in the collection, but for an address type that does not have an address defined, the fields are blank, but nothing is bound to them, I would now need to write code to create a new address, bind to