How do I know if a databound form has been updated? -
, 12:22 AM
I have a vb.net 2010 application using databinding to a MSAccess 2000 database (Donít ask Ė itís what the client is using). The application is similar to a Customers/orders application. The ďCustomerĒ fields are databound controls on the form and the Ďordersí are in a DataGridView. Several of the controls in both the form and the dgv are comboboxes bound to other tables from the database. The user can select new customers, edit customer details, add or delete orders and also create new customers. Some updates also occur behind the scenes when field or column values are changed in response user changes.
My problems arise when the user changes the customer. I want to prompt him/her to save changes if necessary. What is the simplest way to find out if any changes have been made? It ought to be easy but after numerous hours of trying different things that donít work I need help. Iím new to databinding and fairly new to VB.NET so forgive me if this is a really stupid question.