Click here to Skip to main content
15,881,687 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have one GridView with Checkbox, Name, Id field.

Now,I select two or more CheckBoxes, then I press Delete Button.
The selected rows are deleted.

But, How to save these selected row to another table?

Is it possible?

Advance thanks...
Posted
v2

Steps
1. Before deleting the records from DataBase, when you run the store procedure or query, just fetch them according to your conditions.
2. Insert these fetched records to the new table.
3. Now delete from the parent/original table.

Thanks...
 
Share this answer
 
v2
Comments
Hi @sarathviper,

Please accept this answer, if it has helped you in any way.
This will help others to find the answer in one go and you will also be awarded with some points for this action...

Thanks,
Tadit
thatraja 15-Nov-13 10:25am    
Don't know why did you update this (almost 1 year)old question?
Ya sorry. Actually it got accepted today few minutes back.
At that time, I did not exactly knew the techniques to update the question by tagging and editing etc...

Now when I saw the question, I just tagged with appropriate tags (only Asp.Net was present previously) and formatted the contents.
thatraja 15-Nov-13 10:42am    
It's ok. I just found this question in Active list but noticed that it's a old question. That's why asked. Anyway happy weekend.
Oh. No problem. Thanks... Happy weekend to you too. :)
Write a code for inserting the selected rows in a table before deleting the rows.

Thanks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900