• We just launched and are currently in beta. Join us as we build and grow the community.

ComboBox Binding Problem - Does Not Leave Focus

qadir222

Cyber Awareness Educator
Divine
Q Rep
0
0
0
Rep
0
Q Vouches
0
0
0
Vouches
0
Posts
197
Likes
111
Bits
2 MONTHS
2 2 MONTHS OF SERVICE
LEVEL 1 200 XP
After browsing several forum sites I found so many programmers having problem with ComboBox after they bind it to a DataSet.

The problem actually is not cause by a bug or the like. The error is caused by design. Here’s the following question on the internet that I found that will explain this error further:

http://thedailyreviewer.com/dotnet/view/data-bound-combobox-does-not-leave-focus-106127786

http://www.daniweb.com/forums/thread279721.html

Both programmers encounter this problem and unable to move the focus from the said ComboBox.

Here’s an example of the data bound ComboBox.

As you can see the properties are set correctly. But if you move the Status field from a DataSet to your windows form the ComboBox is bound by default using a Text property as shown below.

In this case all you have to do is set the Text property to “(none)”. See screenshot below for the correct settings.

 

449,708

322,558

322,567

Top