J
Jordi Rico
Hi,
well I have a question about something I thought would be trivial but
it's driving me nuts.
In my app I have a list of objects (let's say users) that have been
loaded with a datacontext.
I can add users, list them, etc.
But if I want to edit an user, my problems begin. I pass an user
object to a form, with databound controls to its properties (name,
surname, password...).
Because they are bounded, when I make any change to any control, the
underlying object results changed at the time also.
It has two effects:
a) A list of users shown in other form (from which I select the user
to edit) shows every change I make in edit form.
b) I am unable to cancel editing, because although changes are not
saved to database, they are in memory.
Any help?
Thanks for any help
well I have a question about something I thought would be trivial but
it's driving me nuts.
In my app I have a list of objects (let's say users) that have been
loaded with a datacontext.
I can add users, list them, etc.
But if I want to edit an user, my problems begin. I pass an user
object to a form, with databound controls to its properties (name,
surname, password...).
Because they are bounded, when I make any change to any control, the
underlying object results changed at the time also.
It has two effects:
a) A list of users shown in other form (from which I select the user
to edit) shows every change I make in edit form.
b) I am unable to cancel editing, because although changes are not
saved to database, they are in memory.
Any help?
Thanks for any help