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 / Windows Forms / WinForm Data Binding / February 2006

Tip: Looking for answers? Try searching our database.

SuspendBinding method - strange behavior

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nik - 14 Feb 2006 20:21 GMT
Hello,

I noticed that, when I call the SuspendBinding method on a
BindingContext of a form, and then manually change something in the
underlying data source, it forces a refresh of all bound properties,
even though binding has been suspended. All values read are
System.DBNull in this case. I can't believe this is the intended
behavior. Can anyone shed some light on this?

I am using Framework v1.1.

Thanks.
Lefty - 16 Feb 2006 18:00 GMT
I think if you check the msdn documentation on SuspendBinding() you'll
see that it doesn't prevent changes in the datasource from effecting
the bound controls.  It is a one-way suspension which keeps changes in
the bound controls from updating the datasource.
Nik - 19 Feb 2006 16:29 GMT
I did check the documentation, and the description is not very clear.
However, it does not matter anymore, as I rewritten my application
logic so this doesn't affect me. Thanks for answering, though.

Nik

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.