动态表创建 [英] dynamic table creation

查看:85
本文介绍了动态表创建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有2张桌子
表1:
fileds
分支主管位置距离

表2
分支无客户交易类型......

现在
每个主管分支可以具有多个分支.如果他登录,则要填写每个分支的详细信息
为此,我想在屏幕中生成表格,以便行数取决于每个物料的分支数,并且在屏幕中,第一列的值必须是table1的值,其余的必须是测试框

请帮助

i am having 2 tables
table no 1:
fileds
branch b-in-charge location distance

table 2
branch no-of-clients type-of-transaction ......

now
each branch-in-charge may have more than one branch. if he logs in he want to fill details of his each branch
for this i want to generate table in the screen so that the no of rows depends on the no of branch of each incharge and more over in the screen the first column value has to be value from table1 and rest to be a test box

please help

推荐答案

我不是很了解这种情况,对不起.您有两个相关的数据库表,并且想要显示从该表中取出的一些信息并以表格形式显示该信息?你有什么需要帮助的?从两个数据库表检索数据还是显示数据?

如果是第一个,请在您的SQL查询中包含一个JOIN语句

如果是第二个,请使用GridView并将其数据绑定到您的数据源...

这有帮助吗?如果没有,请尝试再次解释.谢谢!
I did not really understand the scenario, sorry. You have two related database tables, and you want to show some info taken out of this tables and show that info in a tabular way? What do you need help with? With retreiving data from both database tables or with showing it?

If the first, include a JOIN statement in your SQL Query

If the second, go with a GridView and databind it to your datasource...

Does this help? If not, please try to explain it again. Thanks!


这篇关于动态表创建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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