如何通过双击将值从网格视图传递到另一个网格视图? [英] How to pass the value from a grid view to another grid view by double click?

查看:67
本文介绍了如何通过双击将值从网格视图传递到另一个网格视图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!



我的原始网页上有一个网格视图。在第一次加载时,它没有任何记录。如果我单击底部的添加清单按钮,将出现一个新窗口。在该窗口中,它具有包含记录的网格视图。用户只需双击他们想要添加的记录,然后它将传递到原始页面的网格视图。我试过的是,我只是在弹出框中添加一个select命令,其中包含带有记录的网格视图。但我没有达到要求。任何人都可以帮助我如何能够满足这一要求?请:)

Hi Guys!

I have a grid view on my original page. At first load, it does not have any records. If I click the add checklist button located at the bottom, a new window will appear. From that window, it has a grid view that contain records. Users will just double click the record they want to add then after that, it will pass to the grid view at the original page. What I have tried is that, I just add a select command on the pop up box that contains the grid view with records. But I did not meet the requirement. Can anyone help me on how to able to do that requirement? Please :)

推荐答案

为什么不尝试在pageload()上添加代码?



喜欢查询?



Why don't you try to add a code on pageload() ?

Like a query?

Select * from [Table]
Gridview.Datasource = ds
Gridview.Databind()





这样在页面加载时它会自动显示记录。那是你想要发生的吗?



So that at pageload it will automatically show the records. Is that what you want to happen?


这篇关于如何通过双击将值从网格视图传递到另一个网格视图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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