Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting Row from GridView
Message
From
26/03/2010 13:11:06
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 3.0
Miscellaneous
Thread ID:
01457427
Message ID:
01457512
Views:
32
>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,

you may be right in that I am thinking like a windows forms application as opposed to web, but I am just following the examples I have found. The GridView has a Delete button that you can add to a grid so I thought that would be appropriate.

FWIW I have the code to add records to the grid and edit the rows in the grid working properly so I'm not sure why that should work and the Deletion doesn't.

I'm due to demo my system just now so I don't want to have to make a major change to this at this point, unless desperate. :)
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Previous
Reply
Map
View

Click here to load this message in the networking platform