Eureka! Bind to a view, not table.
Bind inspector_idComboBox
to a new SQL Server view of the inspector table.
SELECT NULL as inspector_id, '(none)' as fullName, '' as employeeCode
UNION
SELECT inspector_id, fullName, employeeCode
FROM dbo.inspector
Pros:
- The
(none)
item is in theComboBox
- The
SelectedItem
and text persists when selecting the item. - The SQL view allows a NULL value for
inspector_id
- No workarounds are needed in the application code. Just fill the
DataSet
from the view. - Allows more flexibility as the relationship is not bound.
... brilliant!