Linq sql data binding with winobs combobox
I am trying to link ComboxBox with an external keymap. I know that on cannot bind to the actual foreign key, SomeTableClassFK (throws a LinqSql exception when FK is already set). So I am binding to an FK object, SomeTable, referencing the SelectedItem property of the ComboBox.
SomePrimaryTable
SomeTableClassFK ---> SomeTableClass.PK
SomeTable --------> SomeTableClass
this.aComboBox.DataBindings.Add (new System.Windows.Forms.Binding ("SelectedItem", this.somePrimaryTableBindingSource, "PendingReason", false));
This does not work. The ComboBox always binds the FK object to the first item in its list.
Any ideas?
0
a source to share
2 answers