Cathi
Since you are probably the who is going to answer my question, I might as well ask you directly. I have a combo box on my form and I have some code in the SelectedIndexChanged event. In this code I do something with the SelectValue property of the combo box. I bind both the BindingValueSourceMember and BindingSourceValueMember to an integer key in the table. SelectedIndexChanged event got fired when the form initialize, at this point SelectedValue contains a DataRow (this first row of my bound table). After the form initialized, when I change the selection on the combo box, SelectedIndexChanged event got fired again with SelectedValue containing the correct integer key.
This is a strange situation that the type of the property is changing in runtime. I added a type check in my code so the code would run but I shouldn't need to do that.
Stephen Lee
--------------------------------
Too much to code
Too little time
--------------------------------