Arg81
Well-known member
Is there a way I can check to see whether a datatable has had changes made?
I did try
but even if I change the values in the grid, I still get told No Changes...
I've got a panel that is also bound to the data on the grid, and this is shown when a user clicks "Edit". On the panel, the user can only click "cancel" and "Submit".
I've got a bit of code that I want to fire off ONLY IF the user has made any changes to the data on that panel and clicks "Submit".
If the user clicks Submit without changing any of the data, I don't want the code to be fired....
Thanks
I did try
VB.NET:
if me.dataSet1.haschanges() Then
messagebox.show("Changes!")
Else
messagebox.show("No Changes!")
but even if I change the values in the grid, I still get told No Changes...
I've got a panel that is also bound to the data on the grid, and this is shown when a user clicks "Edit". On the panel, the user can only click "cancel" and "Submit".
I've got a bit of code that I want to fire off ONLY IF the user has made any changes to the data on that panel and clicks "Submit".
If the user clicks Submit without changing any of the data, I don't want the code to be fired....
Thanks