HasChanges with dynamically altered textbox
Posted on 2004-09-10
I have a textbox that is databound to my dataset. When I alter this textbox manually, ds.HasChanges is true--great. However, when I alter the contents of this textbox dynamically, ds.HasChanges = false. I have gotten around this by giving this textbox focus and then moving the focus off of it immediately. It seems to me that the changes are only modified in the dataset when the leave event fires.
This is not a good solution. How can I register these changes with the dataset without my little hack?