Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting Row from GridView
Message
From
26/03/2010 14:08:59
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 3.0
Miscellaneous
Thread ID:
01457427
Message ID:
01457526
Views:
47
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform