如何从GridView保存已删除的行 [英] How to save the deleted rows from GridView

查看:74
本文介绍了如何从GridView保存已删除的行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 GridView Checkbox 名称 Id 字段。



现在,我选择两个或更多 CheckBoxes ,然后我按下删除按钮。

删除所选行。



但是,如何将这些选定的行保存到另一张桌子?



有可能吗?



预谢谢...

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...

推荐答案

步骤

1.在从DataBase中删除记录之前,当您运行存储过程或查询时,只需按照以下步骤获取它们:您的条件。

2.将这些提取的记录插入新表格。

3.现在从父/原始表格中删除。



谢谢...
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...


在删除行之前,编写一个用于在表中插入所选行的代码。



谢谢
Write a code for inserting the selected rows in a table before deleting the rows.

Thanks


这篇关于如何从GridView保存已删除的行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆