User Profile
Collapse
-
An additional solution (other than the one I previously linked) which works without quite so much effort is the this.BindingCon text[(datasource here)].EndCurrentEdit () method which forces all bindings to finish their current action. -
mydogisbox replied to C#-app : Write to one dataset causes another dataset to revert to previous formin .NETI would think that would work. Is there a simple way to clone a dataset?
Added: It turns out I can be much lazier than that. I simply have a bool that indicates whether or not I'm currently saving and if so, I make the SelectedIndexCh anged event do nothing.
Thanks again for your help....Leave a comment:
-
mydogisbox replied to C#-app : Write to one dataset causes another dataset to revert to previous formin .NETOn brief inspection that appears to be exactly what is happening. Thanks a lot. :-)Leave a comment:
-
mydogisbox replied to C#-app : Write to one dataset causes another dataset to revert to previous formin .NETThanks a lot for the quick reply. I will look at that possibility.Leave a comment:
-
mydogisbox started a topic C#-app : Write to one dataset causes another dataset to revert to previous formin .NETC#-app : Write to one dataset causes another dataset to revert to previous form
I have two datasets. One dataset table from dataset1 is bound to a list box. On selection in the list box dataset2 has 9 tables that are populated from the database. these tables are then data-bound to 9 combo boxes. Following selection of items in the combo boxes and the click of a button, the results are then manually written back to the first table in dataset1. The problem that I am having is that after the selection in the first combo box... -
I realized that the databinding on the textbox fires its event when the control loses focus, so the problem is how to get the databinding event to execute before the control Leave event handler executes. I found a way to work around it that doesn't actually deal with the problem, but I found an article online that does address the problem here.Leave a comment:
-
Update has a delayed effect on database
I have a dataset bound to a textbox and (from the Focus: Leave event) I'm using update to move changes from a dataset to a database but the data only gets transfered for the _previous_ change. Is it due to the particular event that I'm using or is something else going wrong?
No activity results to display
Show More
Leave a comment: