Sorry, i'm using v2.6, selfservicing.
I have my own usercontrol, so it is no problem to provide "" instead of null, but wpf binding can use converter, which seems to be better for this case.
If I set "" to field mapped on varchar null column, it is the same as if i would write SetNewFieldValue(fieldIndex, null); ? I don't think so.
in xaml I have control used like this:
<c:TableDropDown x:Name="tblRunMode" SelectedValuePk="{Binding CodeEventRunMode, UpdateSourceTrigger=Explicit, Mode=TwoWay}" EntityName="EventRunModeEntity" Grid.Row="3" />
UpdateSourceTrigger=Explicit means I have to call BindingExpression.UpdateSource to update the entity, so it's not updated automatically. No problem to use converter there to conver null value to "". I want to avoid writing some special code everytime I use this control.
Inside the usercontrol I have binded TableDropDown.SelectedValuePkProperty to ComboBox.SelectedValueProperty, with EntityToPKConverter (as combobox has entitycollection as ItemSource).
SelectedValuePkProperty is DependecyProperty what allow to define PropertyChangedCallback and CoerceValueCallback. CoerceValueCallback is something like setter in CLR property, but it is static method with reference to DependencyObject in method parameter.
The binding as show above is described in every WPF tutorial as best practice or maybe the only good practice. One of the ideas is not to write eventhandlers, but xaml