Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / ADO.NET / May 2008

Tip: Looking for answers? Try searching our database.

lookup combobox not triggering INotifypropertychanged

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rick - 30 May 2008 01:07 GMT
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
William Vaughn [MVP] - 30 May 2008 01:12 GMT
Call EndEdit.

Signature

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

> VS2005 in a Windows form
>
[quoted text clipped - 13 lines]
>
> Rick
Rick - 30 May 2008 19:22 GMT
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

> Call EndEdit.
>
[quoted text clipped - 15 lines]
>>
>> Rick

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.