Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Empty combobox problem

Status
Not open for further replies.

bbegley

Programmer
Apr 29, 2002
228
US
I have a combobox, with a datasource set to a lookup table and DisplayMemeber set to a field in that table. I have the databinding text set to the table that I want to write to.

The problem is that when I insert a record, the combobox is empty, but doesn't seem to know it. The value for
combobox1.text != "", but instead returns the first value in the lookup table. If I click on the dropdown, but don't select a value, then the value is "".

Does anyone have any idea what is going on? I've tried using the SelectedItem and SelectedValue databinding properties as well, to no avail.

Brian
"There are 2 kinds of people in the world, those that divide people into two groups and those that don't. I belong to the second group." - tag line I stole
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top