Null values in bound combobox
Posted on 2006-06-13
I use a combobox to edit the field "ReutersChains" in the table "Instruments".
This is a numeric field, the corresponding strings are stored in the table "ReutersChains".
Simple binding to instruments.ReutersChains. (uses selectedValue)
Complex binding to ReutersChains.Id and name.
This works perfectly.
Now what would be a good (the best?) way to enable clearing the field?
Add a NONE record with id 0 to the table ReutersChains.
If I clear the text of the combo, somehow I place null or 0 in the field ReutersChains.
This would involve some figuring out how to program this.
As far as I know the binding to selectedValue doesn't support such a thing, right?