Re: EndCurrentEdit causes the dataset.HasChanges() become TRUE by Miha
Miha
Wed Nov 17 06:47:02 CST 2004
Hi,
There is a CurrencyManager that with help from DataRow holds intermediate
values before commiting - that's why you don't see HasChanges before you
commite those values (either by calling EndCurrentEdit or moving Position).
If you don't want to raise HasChanges then you might use CancelCurrentEdit
method instead.
--
Miha Markic [MVP C#] - RightHand .NET consulting & development
SLODUG - Slovene Developer Users Group
www.rthand.com
"dev guy" <info@emantratech.com> wrote in message
news:u0y4Ru6yEHA.3808@TK2MSFTNGP15.phx.gbl...
> Hi
>
> I have a form and controls (no datagrid) on it bound to a typed dataset.
> On Save button ... I have called EndCurrentEdit and then ds.HasChanges().
> Even though no changes are made to the fields on the form, the call to
> EndCurrentEdit() causes ds.HasChanges() to become TRUE.
>
> If I do not call EndCurrentEdit() , then even if I do make changes into
> the
> form fields, the HasChanges() remains FALSE.
>
> can somebody throw some light on the same?
>
> warm regards
>
>