Data-bound comboboxes refusing to release focus

W

Wingot

Hey,

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
Country.

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?

Regards,
Wingot
 
L

Linda Liu[MSFT]

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.

Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

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
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

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

Linda Liu[MSFT]

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!

Sincerely,
Linda Liu
Microsoft Online Community Support
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top