如何在水平上显示数据? [英] how to dispaly data in horizantally?

查看:53
本文介绍了如何在水平上显示数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是c#windows的新手.i有一张表包含不同的颜色但是我想在c#水晶报告中只显示一个水平的颜色。帮助我

ex:

table

id得分日期

1 36 5-6-2012

2 45 3-7-2012

3 45 3-8-2012

1 67 5-6-2013

2 56 4-7-2013

1 84 4-4-2012



报告就像这样:



id:1


--------------------------

2012 2013

-score-score --------------------

36 45

84

hi i am new to c# windows from .i have a table contains differnt coloumns but i want to dispaly only one coloumn horizontally in crystal report in c# .help me
ex:
table
id Score date
1 36 5-6-2012
2 45 3-7-2012
3 45 3-8-2012
1 67 5-6-2013
2 56 4-7-2013
1 84 4-4-2012

report like in this way:

id:1

--------------------------
2012 2013
-score-score--------------------
36 45
84

推荐答案

如果您使用Sql Server进行后端操作,那么您可以使用Pivot表概念来查看选择查询

Potot示例



或者您可以将Crystal Report功能用于相同的a在下面的讨论中

http://stackoverflow.com/questions/1639666/pivot-tables-in-crystal-reports [<一个href =http://stackoverflow.com/questions/1639666/pivot-tables-in-crystal-reportstarget =_ blanktitle =New Window> ^ ]
If you are using Sql Server for back end ,then you can use Pivot table concept for wriiting select query
Pivot Example

or you can use Crystal Report Functionality for the same as in below discussion
http://stackoverflow.com/questions/1639666/pivot-tables-in-crystal-reports[^]


这篇关于如何在水平上显示数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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