I have a list of records in a third party grid: when an item is selected, a
user control (bound to a control module level dataset) is filled with the
selected record. I have another form with a different user control also
bound in a similar manner with a grid lsit used to select the current
record. There is also a tab on this form with another instance of the first
user control that can be set to a different record then is showing on the
first form.
If I select item after item, in one form, checking for ds.haschanges before
changing a record reports no changes. If I go to the other form, move
around its records (changing nothing) and return to the first form, then on
the first record change ds.haschanges = true.
Am I missing something on declaring the dataset in the control (Private
dsPM As DataSet)? I cannot understand how the dataset is getting dirty as
I understand the control to be two separate instances on the different forms
that use it and the second form does not refer to the second form at all.
Thanks for any help.
Best,
Glenn