New Posts New Posts RSS Feed: Best way to handle problem with Combo Box
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Best way to handle problem with Combo Box

 Post Reply Post Reply
Author
BillG View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 05-Dec-2007
Location: Monroe, MI
Posts: 233
Post Options Post Options   Quote BillG Quote  Post ReplyReply Direct Link To This Post Topic: Best way to handle problem with Combo Box
    Posted: 03-Jun-2009 at 8:23am
I have a combo box bound to a control binding manager which is bound to a data source.  It works fine.  The user selects a name from the drop down list and it saves and retrieves okay.  Now the user wants to change their mind and not have a selection at all.  Without having to put a none in all the tables that I have combo boxes linked to how can I let the user blank out a combo box selection bound to a binding manager?
 
Bill
 
Back to Top
davidklitzke View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 14-Jun-2007
Posts: 715
Post Options Post Options   Quote davidklitzke Quote  Post ReplyReply Direct Link To This Post Posted: 03-Jun-2009 at 10:05am

You don't have to modify your tables.

Just add a Null Entity to the choices in your ComboBox.  You can even give this choice a unique name (e,g, "No one").  For an example of how to do this see the Intermediate tutorial on "Working with ComboBoxes".


Edited by davidklitzke - 03-Jun-2009 at 10:06am
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down