qadir222
Cyber Awareness Educator
Divine
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.
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.