data bind combobox issue

G

Guest

I have a table that I dragged onto a form from a dataset. I changed some of
the fields to comboboxes and set the data source, display member (text), and
value member (int) to another table within the same dataset. I can start the
form and cycle through existing records. If I click on one of the comboboxes
it will display the text values but then I can no longer click on any other
field. I can continue to click on the same combobox and the form will respond
but otherwise will not and I have to kill the process or stop debugging. The
value member is the correct data type for the table although the display
member is not. Changing the value of CausesValidation to FALSE allows me to
select other fields but then the data is not saved.

What should I be doing different. I am using VS2005 on Vista with 2.0 and
3.0 frameworks installed
 
G

Guest

another observation-- If I enter an acceptable value into the combobox, any
integer, as opposed to the text values shown in the list I can move on to
other fields
 
L

Linda Liu [MSFT]

Hi James,

When you click on the ComboBox and move on to another control on the form,
data binding tries to apply the value(I mean SelectedValue or something
else) of the ComboBox to the underlying data source.

If the ComboBox contains an invalid value to the data source, the input
cursor won't be moved from the ComboBox.

Please check whether the value of the ComboBox is valid to the data source
in your application.

If the problem is still not solved, you may send me a sample 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.
 

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