PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
Combobox doesn't always update
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
Combobox doesn't always update
![]() |
Combobox doesn't always update |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Hi,
This has been bugging me for a day now. I have a win form, with a few comboboxes and textboxes. One combobox is giving me fits. Lets call it "location". The comboboxes are bound to SQL Server tables and appear to work find, MOSTLY. Here's how it's not working: I open the form, and choose a record which has a value in the "location" column. The text boxes and all combo boxes are populated nicely, including the "location" column combobox. I now choose a record that doesn't have a value for "location". The form fills in nicely, and the "location" combo box is now blank. Good. Now, I choose a record that does have a value for "location". The form fills in nicely, EXCEPT for the "location" combo box. Even though the record DOES have a value, it doesn't get updated. However, if I now choose a different record that has a "location" value, the "location" combo box DOES get updated. Whenever a record is chosen (by selecting a name from a different combo box, which is working fine), my code checks to see if a record exists for that name. If not, one is created, with the key elements populated. Then, the form is updated with the info for that record. If the record does exist, it just updates the form with the info from that already-existing record. This is bizarre. Any ideas? Thanks |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

