D
DellaCroce
I have a strange situation going on. I have a set of textboxes bond to a
dataset (ds1) that I present to the user one at a time with navigation
buttons (First-Next-Prev-Last) if they make a change in any of the enabled
textboxes and click a button I first check in the click event for
ds1.HasChanges. If true I do the Update, then reposition the record.
Sounds straight forward, right?
Well if I change a value in a textbox and hit any of the buttons .HasChanges
does not come up true. BUT if I move back to that record the .HasChanges is
true and the correct record is updated. So, change the name in the first
record, click next, .HasChanges=False, click on prev, .HasChanges=True and
the update is done. This happens every time. It is not just the code in
the Next or Prev button clicks, because it happens with First and Last too,
and it happens if I do a Next Click, change the 2nd record, click prev,
..HasChanges = False, click next, and .HasChanges=True.
Any ideas or websites to help me on this one.
Thanks in advance,
dataset (ds1) that I present to the user one at a time with navigation
buttons (First-Next-Prev-Last) if they make a change in any of the enabled
textboxes and click a button I first check in the click event for
ds1.HasChanges. If true I do the Update, then reposition the record.
Sounds straight forward, right?
Well if I change a value in a textbox and hit any of the buttons .HasChanges
does not come up true. BUT if I move back to that record the .HasChanges is
true and the correct record is updated. So, change the name in the first
record, click next, .HasChanges=False, click on prev, .HasChanges=True and
the update is done. This happens every time. It is not just the code in
the Next or Prev button clicks, because it happens with First and Last too,
and it happens if I do a Next Click, change the 2nd record, click prev,
..HasChanges = False, click next, and .HasChanges=True.
Any ideas or websites to help me on this one.
Thanks in advance,