By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,661 Members | 1,311 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,661 IT Pros & Developers. It's quick & easy.

data bind combobox issue

P: n/a
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
--
Regards,
James M
May 22 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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
--
Regards,
James M
"James Martin" wrote:
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
--
Regards,
James M
May 22 '07 #2

P: n/a
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/subscripti...ult.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/subscripti...t/default.aspx.
==================================================

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

May 23 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.