如何使用JavaScript将一个网格的选定行移动到asp.net中的另一个网格? [英] how selected row of one grid is move to another grid in asp.net using javascript?

查看:111
本文介绍了如何使用JavaScript将一个网格的选定行移动到asp.net中的另一个网格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

萨拉姆2所有; :)
如何使用javascript将一个网格的选定行添加/移动到asp.net中的另一个网格?
我在asp.net中有2个网格[即gv1,gv2].我必须从gv1中选择行,然后使用javascript

解决方案

首先在asp.net中移至gv2,
网格被呈现为浏览器的表格.

diyaa_08写道:

我必须从gv1中选择行


你好吗?您在使用Select CommandField吗?
如果
选择一行会将页面发布回服务器.
您可以在这里轻松地执行必需的操作.
如果
提供详细信息...


我首先要选择gv1的行"
正如我之前所说的,网格被呈现为浏览器的表格,即您的网格的行和列被呈现为tr和td的...

要选择表的行(我们的网格),必须使用选择CommandField列"或"ButtonField列"或带有链接按钮的TemplateField"(这是我所知道的方式...)..

然后您可以选择一行并执行其他操作.
您需要告诉我您如何选择行?

我承担很多事情,请告诉我您的确切要求,以便对我有帮助.


thnx ankur g :)
bt首先我要选择gv1的行,然后将此选定的行移至gv2
我没有选择btn
bt我喜欢在asp.net中使用javascript....
请给我答案,代码:-O


sallam 2 all; :)
how to add/move selected row of one grid to another grid in asp.net using javascript?
i have 2 grids in asp.net [i.e gv1, gv2]. I have to select row from gv1 then move to gv2 in asp.net using javascript

解决方案

First of all,
Grid is rendered as a table to the browser.

diyaa_08 wrote:

I have to select row from gv1


How are you doing this? Are you using Select CommandField??
If YES,
selecting a row will post the page back to the server.
You can easily do required things here.
If NO,
Give details...


"bt first i hav to select row of gv1"
As I said before, the grid is rendered as a table to the browser i.e ur grid''s rows and columns are rendered as tr and td''s...

To select a row of a table (ur grid), you must use Select CommandField Column or a ButtonField column or a TemplateField with Link Button (these are the ways i know...)..

Then you can select a row and perform other operations.
You need to tell me how are u selecting the row?

I am assuming a lot of things, tell me your exact requirement so that I can help furthur.


thnx ankur g :)
bt first i hav to select row of gv1 then move this selected row to gv2
i hav no select btn
bt i hav to use javascript in asp.net....
plz provide me answer with code :-O


这篇关于如何使用JavaScript将一个网格的选定行移动到asp.net中的另一个网格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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