lookup combobox not triggering INotifypropertychanged

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
 
W

William Vaughn [MVP]

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)
____________________________________________________________________________________________
 
R

Rick

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top