如何从一个网格视图中选择数据并在其他gridview中显示
问题描述:
我有两个网格视图,区域和区域选择。我想从grd区域中删除数据,并在按下选择按钮时在grdZoneSelected中保存相同的数据。同样。我想从grdZonese中删除数据并在按下grdZone中的删除按钮时保存在grd区域。
I have got two grid view, Zone and Zone Selected. I want to remove data from grd zone and save same data in grdZoneSelected when the select button is pressed. Similarly. I want to remove data from grdZoneselected and save in grd zone when remove button in grdZone is pressed.
答
您可以处理Grid的选定行事件。这样我们就可以获得那些选定的记录。获取这些记录后,您可以将其存储在数据表中并同时添加到下一个数据表中,从现有数据表中删除这些记录并重新绑定网格。
-SG
you can work on the selected row event of the Grid. In that way we can get those selected records. after getitng those records you can store that in a data table and add to the next data table at the same time remove those records from the existing datatable and rebind the grid.
-SG