From: Paul on
Hi,

How to do this with a DataContext,
I have a form where there is a DataContext, and allowed to make
changes, since this form opens another form,
and in this second form the user have changes, but on leaving the
second form selects the option to cancel. How can I do to delete only
the second form changes, and keep track of changes on the first form?

Thanks
From: Cor Ligthert[MVP] on
Hallo Paul,

What kind of form your second form is a MDI, a Modal Dialog (showdialog) or
a form which is showed with show?

You better can put the datacontaxt in a seperate class by the way.

Cor

"Paul" <gambamia2(a)yahoo.es> wrote in message
news:b7bd3314-be37-4e41-80f4-739c9011a69d(a)g10g2000yqh.googlegroups.com...
> Hi,
>
> How to do this with a DataContext,
> I have a form where there is a DataContext, and allowed to make
> changes, since this form opens another form,
> and in this second form the user have changes, but on leaving the
> second form selects the option to cancel. How can I do to delete only
> the second form changes, and keep track of changes on the first form?
>
> Thanks