Combobox Problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm having the following problem with the combobox. I create a dataset and load it with a code and description field from the database. I then add a new row to the dataset with a code of '0' and an empty description. Next I bind the dataset to a combo box with the displaymember = description and valuemember = code. The error occurs when ever I set the combo's SelectedValue equal to the first row after the new row. I get "Specified argument was out of the range of valid values." Every other row works okay.
 
Back
Top