Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to detect changes?
Message
From
12/10/2003 15:25:58
 
 
To
All
General information
Forum:
ASP.NET
Category:
ADO.NET
Title:
How to detect changes?
Miscellaneous
Thread ID:
00837935
Message ID:
00837935
Views:
81
Hi! All,

I have created connection, data-adapter and dataset. I have binded all the textboxes and comboBoxes with dataset at design time.

As far as navigation is concern, every thing is good and nice. But, what if user changes any of the values in textboxes or comboBoxes?

I want to display a messagebox asking for a confirmation about the changes the user has made before moving to next record or applying filter, find or sort operations.

The problem is, How to know whether user has changed any of the values, as dsFoo.HasChanges() dosen't work while applying sort, filter or find? Also, as per my experience, dsFoo.HasChanges() gives true value after moving to next record. Hence, the values in Binded Controls are changed when messagebox popups.

Any suggestion regarding approach is also welcomed.

Thanks in adv.

Ritesh.
If you are courageous, listen to your heart. If you are coward, listen to your head.
Next
Reply
Map
View

Click here to load this message in the networking platform