Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleting Row from GridView
Message
De
26/03/2010 14:08:59
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 3.0
Divers
Thread ID:
01457427
Message ID:
01457526
Vues:
48
>Frank,
>
>You are coding this like its a Windows application and you need to start thinking in web application terms, which means that when you want to do something like this (saving a transaction) you will need to do it differently than what you might be used to. I do not know how to save the deleted rows in a transaction for possible rollback if the user hit cancel, but what I would possibly suggest is just add a delete checkbox in each row of your grid. When it is checked you do nothing, however when the Save button is clicked then you scan your grid entries and issue the delete for those rows and then also save your client record. When cancel is clicked, you do nothing.
>
Bob,

I took your advice and used a check box in the grid and check the selected value of this checkbox when I hit the save button.

Thanks
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform