Home All Groups Group Topic Archive Search About

TableAdapters and HasChanges

Author
29 Nov 2006 3:52 AM
JJ
I am really confused about TableAdapters, Datasets in general.  I have
added them to my Windows Form simply by dragging fields onto my form.
Now, when the user presses the Cancel button, and I want to determine
that something has changed, ie, If Me.MYDataSet.HasChanges = False,
then MsgBox("You Have Not Made Any Changes!").  Only problem is, if I
do make a change I get the same message.  What should I be doing here?
I would prefer displaying a message indicating "No Changes Made"
versus a message saying "Add/Edit Changes have been Cancelled..." Help
me out here, and thanks for helping me thru my learning curve.

Author
29 Nov 2006 4:32 AM
Cor Ligthert [MVP]
JJ,

I assume you have uses some kind of designers, open the code that is in the
designer part of your program, than you will see probably all those text.

Cor

Show quote
"JJ" <NoEmailForMe...> schreef in bericht
news:lu0qm2tnf01v898e8ql4tq36tq17fppv0i@4ax.com...
>I am really confused about TableAdapters, Datasets in general.  I have
> added them to my Windows Form simply by dragging fields onto my form.
> Now, when the user presses the Cancel button, and I want to determine
> that something has changed, ie, If Me.MYDataSet.HasChanges = False,
> then MsgBox("You Have Not Made Any Changes!").  Only problem is, if I
> do make a change I get the same message.  What should I be doing here?
> I would prefer displaying a message indicating "No Changes Made"
> versus a message saying "Add/Edit Changes have been Cancelled..." Help
> me out here, and thanks for helping me thru my learning curve.

AddThis Social Bookmark Button