如何在垂直行而不是水平行中显示网格值。 [英] How to display Grid Values in Vertical Row instead of Horizontal Row.
本文介绍了如何在垂直行而不是水平行中显示网格值。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有GridView,数据包含在水平行中。
见下文
---------
名称部门年龄等级
Ram Comp 26 A
而不是上面,我想在gridview的垂直行显示。
必需的垂直格式。
------------------------
姓名Ram
Dept Comp
年龄26
A级
在GridView控件中执行此操作...?
解决方案
只需看一次这个链接
http://www.c-sharpcorner.com/UploadFile/sd_patel/DisplayVerticalData11242005011015AM/DisplayVerticalData.aspx [ ^ ]
在DataGrid中显示垂直行 [ ^ ]
我不是从哪里检索数据但是对于SQL,你可以使用 PIVOT [ ^ ]声明。
但是您需要在DataSource
一侧执行此操作c $ c> GridView 。
在DataGrid视图中显示垂直行 [ ^ ]
Hi,
I have the GridView and the data Contain in Horizontal row.
see below
---------
Name Dept Age Class
Ram Comp 26 A
Instead of above, i want to display in the vertical row in the gridview.
Required vertical Format.
------------------------
Name Ram
Dept Comp
Age 26
Class A
Hoe to do this in GridView controls...?
解决方案
just see this link once
http://www.c-sharpcorner.com/UploadFile/sd_patel/DisplayVerticalData11242005011015AM/DisplayVerticalData.aspx[^]
Displaying vertical rows in a DataGrid[^]
I do not not from where the data is retrieved but for SQL you can use the PIVOT[^] statement.
But you will need to do this at theDataSource
side of theGridView
.
Displaying Vertical Rows in DataGrid View[^]
这篇关于如何在垂直行而不是水平行中显示网格值。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文