使用VB.NET将数据库值显示为数据透视表 [英] Displaying the Database Values as Pivot Table using VB.NET

查看:104
本文介绍了使用VB.NET将数据库值显示为数据透视表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Sql表,其中的数据排列为

测试日期---- ID ----名称-----标记
2011年1月12日11名称1 66
01/01/2011 12 Name2 44
01/12/2011 14 Name4 50
2011/07/12 11 Name1 50
2011/07/12 12 Name2 56

我只想在使用VB.net的Asp.net页面下显示此内容:

TestDate ------ Name1 ----- Name2 ---- Name4

2011年1月12日66 44 50
2011年7月12日50 56-

使用htmlTable或GridView ..我尝试使用嵌入式封闭块
在aspx页面的源中..但是无法获得所需的输出.

在文字中,只需要在名称下显示相应的标记即可.
希望有人知道该技巧.

Hi I have a Sql Table in which Data is arranged as

Testdate ---- ID ---- Name ----- Marks
01/12/2011 11 Name1 66
01/12/2011 12 Name2 44
01/12/2011 14 Name4 50
07/12/2011 11 Name1 50
07/12/2011 12 Name2 56

I just want to show this under a Asp.net Page Using VB.net as:

TestDate ------ Name1 ----- Name2 ---- Name4

01/12/2011 66 44 50
07/12/2011 50 56 --

Using htmlTable or GridView..I have Tried using Embedded Close Blocks
In source of aspx page ..but Didn''t able to get the required Output.

In words Just need to show the respective marks under the names .
Hope Someone Knows The Trick.Help needed

推荐答案

看看
Have a look at the ASPxPivotGrid Suite[^]

Best regards
Espen Harlinn


这篇关于使用VB.NET将数据库值显示为数据透视表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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