如何从一个网格视图中选择数据并在其他gridview中显示 [英] How to select data from one grid view and display in other gridview

查看:68
本文介绍了如何从一个网格视图中选择数据并在其他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


这篇关于如何从一个网格视图中选择数据并在其他gridview中显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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