当我在另一个网格视图中双击行时,如何在网格视图中显示数据? [英] How I Display Data In Grid View ,When I Double Click In Row In Another Grid View ?

查看:57
本文介绍了当我在另一个网格视图中双击行时,如何在网格视图中显示数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两张桌子那样: -



表1: - Id,Number,....... Id是FK而Number是PK < br $>


表2: - items_No,数字,类型,.......数字是FK



表格1显示在网格视图中,我从按钮打开这个按钮就像在窗体中浏览一样



表格2在网格视图中以相同的形式显示/>


当我双击网格视图中的表格1时显示所有在数字中找到的项目



就像那样: -



表1: - 身份证号码

1 500

2 600



当我双击行[2]显示所有项目



表2: - 项目编号类型



1 500 ....

2 500

3 500

I have two table Like that:-

Table 1:- Id , Number , ....... Id is FK and Number is PK

table 2 :- items_No , Number , Type , ....... Number Is FK

table 1 is display in Grid view that i open from button this button is like browse in the form

table 2 is display in grid view in the same form

when i double Click in the table 1 in grid view display all items that find in Number

like that :-

table 1 :- Id Number
1 500
2 600

when i double click in rows[2] display all item

table 2 :- Items Number type

1 500 ....
2 500
3 500

推荐答案

当你点击gridview 1行时n填充第二个网格视图2并将查询2中的where条件设置为gridview1.selectedrow.number.value中的数字
when you click on gridview 1 row then fill 2nd grid view 2 and set the where condition in query 2 as number from gridview1.selectedrow.number.value


这篇关于当我在另一个网格视图中双击行时,如何在网格视图中显示数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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