lookup combobox not triggering INotifypropertychanged

  • Thread starter Thread starter Rick
  • Start date Start date
R

Rick

VS2005 in a Windows form

I have a databound lookup combobox that is setup in the usual manner with
the Text, DisplayMember and ValueMember all set and bound to a data object.

In the Windows form when I drop down the combo box and click on a value the
SET method of dataobject that it is connected to is triggered, however if I
type in the first letter of one of the drop down selections, the SET is
never triggered and consequently when I save the object the DB is updated
with the wrong value.

What can I do about this?

Regards,

Rick
 
Call EndEdit.

--
__________________________________________________________________________
William R. Vaughn
President and Founder Beta V Corporation
Author, Mentor, Dad, Grandpa
Microsoft MVP
(425) 556-9205 (Pacific time)
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
____________________________________________________________________________________________
 
Thanks,

I tried to call from the combobox.SelectedIndexChanged event both
BindingSource.EndEdit and also the data object EndEdit and neither retained
the changed value, i.e. they reverted back to the original value.

Apparently the combobox does not know it has a changed value unless it
actually drops down.

Any other suggestions?

Regards,

Rick
 
Back
Top