如何创建水平的grisviews是asp.net? [英] how to create horizontal gridviews is asp.net?

查看:57
本文介绍了如何创建水平的grisviews是asp.net?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我想创建水平GridView.
表示GridView的转置.

Hi to all

I would like to create horizontal GridView.
Means transpose of GridView.

推荐答案

所有网格视图都不是水平的也不是垂直的-它们是矩形的.也许您可以称其为a网格视图只有一个原始的水平",但在这种对象上我看不出太多的意义;只是制作一个水平"表.

现在, transpose ...您可以想到仅当您再次应用转置操作一次,并以不同的方向显示相同的数据时,才可以想到转置操作.我怀疑这是您所需要的.现在,请记住,转置的网格视图也是具有完全相同的属性,但单元已重定位的树形视图.将其转入您的脑海,并创建常规的树状视图.严重地.或者,您可以转置数据集(如果使用的话). AndréKraak解释了如何在其解决方案中转置它-请使用它.

祝你好运,
—SA
All grid views are not horizontal and not vertical — they are rectangular. Perhaps you can call a grid view with only one raw a "horizontal" but I don''t see much sense in such object; just make a "horizontal" table.

Now, transpose… You can think of transpose operation only when you apply it more then once, showing the same data in different orientation. I doubt this is what you need. Now, bear in mind that a transposed grid view is also a tree view with exact same properties, but with the cells relocated. Transpose it in your mind and create a regular tree view. Seriously. Alternatively, you can transpose your data set, if you use one. André Kraak explains how to transpose it in his solution — please use it.

Good luck,
—SA


您将需要更改GridView数据源的方向.
在SQL中,您可以使用PIVOT语句,请查看 SQL SERVER – PIVOT表示例 [ ^ ].
You will need to change the orientation at the data source of the GridView.
In SQL you can use the PIVOT statement, have a look at SQL SERVER – PIVOT Table Example[^].


这篇关于如何创建水平的grisviews是asp.net?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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