Combobox Problem

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top