Replied 8 September 2017, 3:25 pm EST
There truly are lots of examples in the forums; and I've looked at quite a number of them.
However, most of the examples are from users (many of which don't work right) or, are fragments and not complete examples or, require wading through forum posts for hours to find.
Here, is what I am looking for; I would like a combo where:
A) The combo can be bound to a database column which is defined as a varchar column (string value).
B) The database column that is bound to the combo does NOT allow nulls.
C) The combo Items and ItemData collections can be assigned programmatically.
D) You can press Delete and have the combo SelectedIndex set to -1; so no item is selected.
E) When the combo SelectedIndex = -1, the value that is assigned to the bound database column can be translated to a blank/empty string.