471,330 Members | 1,452 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,330 software developers and data experts.

ComboBox bound to Datasource problem

I'm trying to speed up my coding by not doing so much manually, use the
automated tools more. I'm binding the Datasource, DisplayMember, and
ValueMember to a Combo.

The automation also puts a MenuStrip at the top of the window with a
"+" button for adding a new row. This causes an error if I try to save
a new row, because the text of the combo is not the "Selected Value".

If I bind the SelectedValue to the text, I can't move through the list
by typing in the combo because of an error that the value is already in
the list.

How do you get it so that it allows AutoComplete typing your way to a
record you want to modify, while also letting you add a new row from

(The value in the combo is also the PK).

Bob Graham

Feb 22 '06 #1
0 976

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by tonyblum | last post: by
1 post views Thread by Norm Katz | last post: by
1 post views Thread by Andrus | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.