Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataSet Haschanges returning false
Message
From
26/10/2012 11:41:25
 
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:
01555888
Views:
64
A little late to the game here (haven't been on the UT most of this month).

Thanks Gregory, for plugging my blog. Thanks Pete, for taking a look at it. But as you found out, the blog post's intent wasn't really in keeping with the problem you were having Pete. But Bill to the rescue ... his WriteValue suggestion is spot-on.

~~Bonnie




>>>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 ?
>>
>>Pete,
>>
>>A quick google returned this http://geek-goddess-bonnie.blogspot.be/2009/09/fun-with-datasets.html
>
>Hi Gregory, my dataset has only one table and one row and I always call EndEdit as Bonnie is doing but HasChanges() is still returning false. I'll work around it for now - thanks for your help.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform