Hello,

I'm binding a ComboBox's SelectedIndex to a Nullable database field like so:
VB.NET Code:
  1. ColapsoComboBox.DataBindings.Add("SelectedIndex", EnsaiosBindingSource, "Colapso", False, DataSourceUpdateMode.OnValidation, 0)

As you can see, I've defined the NullValue to be zero, yet I get an InvalidCastException.
Is there anything I'm doing wrong? Or is handling the binding's Format and Parse events the only way around this?

Thanks in advance