I have a form with a tab control on it. When the user changes from one tab to
the next, I want be able to check and see if there are any changes on that
tab and prompt them to save or cancel.
Each tab contains data from different tables, all in the same dataset. All
the text fields on the tab are bound to the dataset.
if I use MyDataset.HasChanges, it shows False even if I have modified a
field. What am I missing? My guess is I have to do something with
BindingContext or the like. Newbie to ADO and .NET, so any help would be
greatly appreciated.
When you bind a control to a DataTable or DataView you need to tell ADO.NET
that you're done with the changes. Check out EndEdit. Once you execute this
method, HasChanges should change state.

Signature
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
>I have a form with a tab control on it. When the user changes from one tab
>to
[quoted text clipped - 8 lines]
> BindingContext or the like. Newbie to ADO and .NET, so any help would be
> greatly appreciated.