单击复选框将gridview一列复制到另一列 [英] copy gridview one column to another column on click of checkbox

查看:76
本文介绍了单击复选框将gridview一列复制到另一列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

场景



我有一个网格。有4列



1)复选框[标题复选框]

2)位置

3)distance1(用户将输入距离)

4)distance2(用户将离开距离)



- 在distance1更新后



- 复选框我会点击...这会将第3列(即distance1)的所有距离复制到(距离2列)



- 我需要用jquery做这个



- 帮助我



- 如何使用jquery获得grideview单元格

like column3 row1

column3 row2

column3 row3

- 因为一旦我知道如何获得gridview单元格值....我可以将那些

分配给column4 row1

column4 row2

等等





请帮助我

解决方案

尝试检索这样的值



(document).ready(function(){


(#GridViewID input [type = checkbox])。click(function(){

Scenario

i have a grid. There are 4 columns

1)checkbox[header checkbox]
2)location
3)distance1 (user will enter distance)
4)distance2(user will eneter distance)

--after distance1 is updated

--a check box i will click ...which will copy all the distance that is in column3 (that is distance1) to (distance2 column)

--i need to do this using jquery

--help me

--how to get also grideview cell using jquery
like column3 row1
column3 row2
column3 row3
--because once i know how to get the gridview cell value....i can assign those
to column4 row1
column4 row2
and so on


Kindly help me in this

解决方案

try to retrieve the value like this


(document).ready(function () {


("#GridViewID input[type=checkbox]").click(function() {


这篇关于单击复选框将gridview一列复制到另一列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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