Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to detect changes?
Message
De
12/10/2003 15:25:58
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Titre:
How to detect changes?
Divers
Thread ID:
00837935
Message ID:
00837935
Vues:
82
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform