Click to See Complete Forum and Search --> : C# making user changes stay


Nexusfactor
February 18th, 2010, 06:50 PM
Hello

I need help with an update feature. I have a list items that the user can select from. If they wish they can update the prices of the item. If they wish to do so, they are taken to a subform where they can update the prices. How would I make there changes stay instead of going back to there default values?


Here is my code.

rliq
February 18th, 2010, 11:11 PM
Either of the following:

1) After displaying the sub-form, you need to read the values back into the main-form before disposing of the sub-form. (tightly coupled)
2) The sub-form can fire an Event containing the new values and the main-form can subscribe to that event. (loosely coupled)