从另一个gridview填充一个gridvew [英] Populate a gridvew from another gridview

查看:85
本文介绍了从另一个gridview填充一个gridvew的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有一个gridview,gridview1,其中所有事件名称都带有EventID作为表tblEvent中的主键.

现在我想基于从gridview1中选择的EventID从另一个表tblTime中填充另一个gridview,gridview2. tblTime将EventId作为外键.

有人可以帮忙吗?

解决方案

尝试以下 http://forums.asp.net/p/1116855/1733589.aspx [ ^ ]


hi
i have a gridview, gridview1 which has all the event names with EventID as primary key from table tblEvent.

now i want to populate another gridview, gridview2, from another table tblTime based on the EventID selected from gridview1. tblTime has EventId as foreign key.

can anyone help?

解决方案

Try this http://forums.asp.net/p/1116855/1733589.aspx[^]


这篇关于从另一个gridview填充一个gridvew的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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