如何使用JavaScript将一个网格的选定行移动到asp.net中的另一个网格? [英] how selected row of one grid is move to another grid in asp.net using javascript?
问题描述
如何使用javascript将一个网格的选定行添加/移动到asp.net中的另一个网格?
我在asp.net中有2个网格[即gv1,gv2].我必须从gv1中选择行,然后使用javascript
首先在asp.net中移至gv2,
网格被呈现为浏览器的表格.
diyaa_08写道:我必须从gv1中选择行
你好吗?您在使用Select CommandField吗?
如果是,
选择一行会将页面发布回服务器.
您可以在这里轻松地执行必需的操作.
如果否,
提供详细信息...
我首先要选择gv1的行"
正如我之前所说的,网格被呈现为浏览器的表格,即您的网格的行和列被呈现为tr和td的...
要选择表的行(我们的网格),必须使用选择CommandField列"或"ButtonField列"或带有链接按钮的TemplateField"(这是我所知道的方式...)..
然后您可以选择一行并执行其他操作.
您需要告诉我您如何选择行?
我承担很多事情,请告诉我您的确切要求,以便对我有帮助.
sallam 2 all; :)
thnx ankur g :)
bt首先我要选择gv1的行,然后将此选定的行移至gv2
我没有选择btn
bt我喜欢在asp.net中使用javascript....
请给我答案,代码:-O
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 javascriptFirst 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屋!