在网页中显示数据列表

问题描述:

我在数据库中有一个名为"Student"的表,数据库中的表结构如下所示

I have a table in a database named as "Student" and the tabel structure in the database is as follows

报价:


活动 学生姓名 位置
运行 XYZ 1St
运行 ABC 2ND
运行 MNO 3RD
跳高 PQR 1st
跳高 EFG 第二名
跳高 KLM 第三名


Events Students Name Position
Run XYZ 1St
Run ABC 2ND
Run MNO 3RD
High Jump PQR 1st
High Jump EFG 2nd
High Jump KLM 3rd


现在,我想使用任何数据控件在我的网页中以表格视图显示上述数据,该控件可从位于asp.net数据库中的上述表格"Student"中获取数据,就像这样


Now I want to show the above data in a my web page in a table view using any data control which fetch data from the above table "Student" located in database in asp.net like this

报价:


活动 学生姓名 职位
 运行 XYZ 1St
2ND
3RD
PQR 1st
EFG KLM


Events Students Name Position
 Run XYZ 1St
ABC 2ND
MNO 3RD
High Jump PQR 1st
EFG 2nd
KLM 3rd


为什么不签出 ^ ]文章.它与您讨论的情况类似.
Why dont you check out this[^] article. It has the similar scenario you discussed.


您好,

请通过以下链接:
http://www.dotnetfunda.com/articles/article1138-merge-data- columns-in-gridview.aspx [ ^ ]

http://weblogs.asp.net/brijmohan/archive/2011/09/03/rows-and-columns-merging-in-asp-net-gridview-control.aspx [ http://www.c-sharpcorner.com/uploadfile/eb5fab /merge-same-data-column-in-gridview/ [
Hello,

Please go through following link:
http://www.dotnetfunda.com/articles/article1138-merge-data-columns-in-gridview.aspx[^]

http://weblogs.asp.net/brijmohan/archive/2011/09/03/rows-and-columns-merging-in-asp-net-gridview-control.aspx[^]

http://www.c-sharpcorner.com/uploadfile/eb5fab/merge-same-data-column-in-gridview/[^]


使用gridview根据需要显示此项目或中继器.外观 [ ^ ]
use gridview to show this item or repeater as you want. look This[^]


查看更多