fisc
asked on
HasChanges with dynamically altered textbox
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?
This is not a good solution. How can I register these changes with the dataset without my little hack?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Ahh! You are so wise! I still think the change to the textbox should register with the dataset its bound to without getting and losing focus, but I suppose this will work instead. Thanks for the suggestion!
ASKER