更新时间:2023-11-27 13:24:10
假设您有两个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[^]
我需要为哪个事件触发相同的事件?
which event i need to fire for the same?
由您决定.删除行时使用该事件.
Its up to you. Use the event when you delete row.