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 / May 2006

Tip: Looking for answers? Try searching our database.

When does a DataSource get updated?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David - 14 May 2006 19:59 GMT
I have a form with a checkbox that is bound to a System.Boolean field in a
data table.  I also have a handler for the DataRowChange event.

When I check or uncheck the checkbox the DataRowChange handler is not
called.  If I call EndCurrentEdit() the handler also does not fire.
However, if I call AcceptChanges() the DataRowChange handler does get
called.

My question is...  After the CheckBox is bound to the DataSource, when and
how does the DataSource get updated?

Thanks for any help.

David
David - 14 May 2006 20:30 GMT
I also noticed that when you attach the Format and Parse event handlers to
the Binding that they get called with the correct values.  Also, if I
explicitly check the values in the DataTable it is correctly updated when
the focus leaves the control.

However...  DataSet.HasChanges() always return false and the handler for the
DataRowChange event does not get called.

How is this supposed to work?  What causes HasChanges() to return true.

Thanks again.

David

>I have a form with a checkbox that is bound to a System.Boolean field in a
>data table.  I also have a handler for the DataRowChange event.
[quoted text clipped - 10 lines]
>
> David

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.