Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataSet Haschanges returning false
Message
From
09/10/2012 12:01:32
 
General information
Forum:
ASP.NET
Category:
Forms
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01554541
Message ID:
01554559
Views:
57
This message has been marked as the solution to the initial question of the thread.
Hi Pete,

Perhaps checking out the DataBinding Class WriteValue() and ReadValue() methods will help.

Bill

>Hi all, I need a bit of help understanding why a call to Dataset.Haschanges() returns false. I have a form with several textboxes bound to a Dataset. I create the bindings thus:
>
>this.txtFirstName.DataBindings.Add("Text",this.dsNames,"AFieldName");
>
>
>and so on for the other textboxes. Here is the Gotcha !, if I manually change any of the textboxes values by typing , the call to "HasChanges()" correctly returns true, But ! , if I set the values in code e.g.
>
>this..txtFirstName.Text = "";
>
>
> the call to "HasChanges()" returns false. Any ideas ?
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform