将已删除的行从一个GridView复制到另一个GridView [英] Copying the deleted rows from one GridView to another GridView
本文介绍了将已删除的行从一个GridView复制到另一个GridView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将已删除的行从同一网格视图复制到同一页面的另一网格视图?
How can I copy the deleted rows from one gridview to another gridview in the same page? which event i need to fire for the same?
推荐答案
假设您有两个GridView
s
的DataTable
当您从Gridview中删除一行时,请从DataTable1(Gridview1)中删除该行
将这些值(行)添加到DataTable2(Gridview2)
将DataTable1绑定到Gridview1
将DataTable2绑定到Gridview2
供您参考
数据表-添加,修改,删除,过滤,对行进行排序&从Xml/向Xml读/写 [ ^ ]
Assume you haveDataTable
for twoGridView
s
When you delete a row from Gridview, remove that row from DataTable1(Gridview1)
Add those values(row) to DataTable2(Gridview2)
Bind the DataTable1 to Gridview1
Bind the DataTable2 to Gridview2
For your information
DataTable - Adding, Modifying, Deleting, Filtering, Sorting rows & Reading/Writing from/to Xml[^]
Kumar Debasis Barik写道:
Kumar Debasis Barik wrote:
我需要为哪个事件触发相同的事件?
which event i need to fire for the same?
由您决定.删除行时使用该事件.
Its up to you. Use the event when you delete row.
这篇关于将已删除的行从一个GridView复制到另一个GridView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文