468,170 Members | 2,081 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,170 developers. It's quick & easy.

Data-bound comboboxes refusing to release focus


I have a view to a database that I have created for Client Maintenance. It has
a number of fields, but the important ones are Medical Condition, Bill To, and

I have a couple of external tables: One for Countries that store each Country
as a ID (char(2)), and Name (varchar(50)) pair; One for Medical Conditions,
using ID (int) and Name (varchar(50)). Also, the BillTo field refers back to
the same table that is being displayed, although using another BindingSource.

What I have found is that, when I link up the datasource, display member,
value member, and selected value using the appropriate values, the comboboxes
have the correct values, and can be set to these perfectly fine. However, both
the Medical Condition and the BillTo comboboxes, once the value is changed,
refuse to release the focus. The intriguing thing is that the Country combobox
does work perfectly fine, and this value can be changed and then lose focus,
and can even be saved, without issue. Hence I can't see why the exact same
process is not working for BillTo and Medical Condition

The only difference I can see is that the Value field of the datasource is an
integer for the two that are failing but char values for the Country, but I
would think this would only cause a problem on saving.

Has anyone come across this issue and able to give advice as to the problem?


Jan 3 '08 #1
2 1739
Hi Wingot,

Based on my understanding, you bind three ComboBoxes in the same way but
only one ComboBox works properly and the other two ComboBoxes refuse to
release the focus once the selected value is changed. If I'm off base,
please feel free to let me know.

From the above phenomenon, it looks like the two ComboBoxes don't pass the
validation. Have you handled the Validating event of the two ComboBoxes and
set the CancelEventArgs.Cancel property to false under some conditions?

If the problem still exists, please send me a simple project that could
just reproduce the problem. To get my actual email address, remove 'online'
from my displayed email address.

Linda Liu
Microsoft Online Community Support

Get notification to my posts through email? Please refer to

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at

This posting is provided "AS IS" with no warranties, and confers no rights.

Jan 4 '08 #2
Hi Wingot,

How about the problem now?

If the problem is still not solved, please feel free to let me know.

Thank you for using our MSDN Managed Newsgroup Support Service!

Linda Liu
Microsoft Online Community Support

Jan 8 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Chris | last post: by
1 post views Thread by djozy | last post: by
reply views Thread by NicK chlam via DotNetMonster.com | last post: by
3 posts views Thread by bbernieb | last post: by
5 posts views Thread by DC Gringo | last post: by
1 post views Thread by gcdp | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.