我想使用onSelectIndexChange在同一页面中将数据从一个网格传输到另一个网格 [英] i want to transfer data from one grid to another in same page using onSelectIndexChange

查看:96
本文介绍了我想使用onSelectIndexChange在同一页面中将数据从一个网格传输到另一个网格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用onSelectIndexChange将数据从一个网格传输到同一页面中的另一个网格





当用户点击按钮行时应该转移到另一个网格



plz帮我设置条件

解决方案

1。您可以在Session对象和SelectindexChange中保存Grid的数据,您可以在会话对象中添加/删除记录。

2您可以创建2个DataTable对象,并可以在SelectIndexChange事件中执行添加/删除。 / blockquote>

您可以看到以下链接以了解会话:



http://msdn.microsoft.com/en-us/library/ms178581.aspx [ ^ ]



你可以使用下面的代码将数据放入会话中:



会话[  data_1] =  object ; 





谢谢


i want to transfer data from one grid to another grid in same page using onSelectIndexChange


when user click on button row should be transfer in another grid

plz help me to set condition

解决方案

1. You can save data of both the Grid in Session object and in SelectindexChange you can add/remove records from session objects.
2 You can create 2 DataTable objects and can do Add/Delete in SelectIndexChange event.


You can see the below link for session understanding:

http://msdn.microsoft.com/en-us/library/ms178581.aspx[^]

You can use below code to put data in the session:

Session["data_1"] = object;



Thanks


这篇关于我想使用onSelectIndexChange在同一页面中将数据从一个网格传输到另一个网格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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