473,408 Members | 2,477 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

data bind combobox issue

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
2 2554
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Mr. B | last post by:
I'm updating my current VB.et application. I currently reads about 6 tables from an MS Data base. I've created a new MDB file which combines the 6 tables into 1 table. I'm doing this because I...
2
by: bds | last post by:
I'm new to .net 2.0 and I'm trying to figure out the best way to create a form that has a couple of controls and one of the controls is a combo box with a data bound list of items from another...
1
by: Trent | last post by:
I am in the design phase of a new database and am having a devil of a time with a subform. I have three tables that relate to problem - Suppliers tbl, Customers tbl and a SuppliersCustomers tbl....
4
by: Mike L | last post by:
I'm open for any suggestions on how to better program this. I want the user to select a license from a combo box, cboPrivilege and then the user will click the add button, then a record will be...
1
by: Sachin Kuchinad | last post by:
Hi All I am using .NET Framework version 1.0.3705 to build a website. Now i have made a webform and on that i have added a dropdown to the page I bind this listbox to a datareader . This does...
0
by: mjsterz | last post by:
I've been working with VB .NET for less than a year and this is the first time I've posted on one of these groups, so let me apologize beforehand if I'm being unclear, not posting my issue...
2
by: Matt | last post by:
Hi all, me again! :) I've now got an issue with combo boxes. Basically, I have a number of items that I want a user to pick from a single list. It's basically along the lines of: Fruit 1: ...
5
by: nagar | last post by:
I'm using data binding to display the values of a dataset in a form. Normally I associate the Text property of the UI element to a field of the dataset. For a specific field, I need to do the...
10
by: =?Utf-8?B?UiBSZXllcw==?= | last post by:
Hi, Problem: How can I databind (or put) a SqlServer query's row return of 115,000 items into a ComboBox quickly? Not much longer than a matter of seconds, that is... Scenario: I am...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.