且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将已删除的行从一个GridView复制到另一个GridView

更新时间:2023-11-27 13:24:10

假设您有两个GridView s
DataTable
当您从Gridview中删除一行时,请从DataTable1(Gridview1)中删除该行
将这些值(行)添加到DataTable2(Gridview2)
将DataTable1绑定到Gridview1
将DataTable2绑定到Gridview2

供您参考
数据表-添加,修改,删除,过滤,对行进行排序&从Xml/向Xml读/写 [ ^ ]
Assume you have DataTable for two GridViews
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.