我想创建水平网格视图 [英] I want to create horizontal grid-view
本文介绍了我想创建水平网格视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想像这样在网格中显示记录
名称xyz abc asd pqr rst
地址12a 321b 43c 43d 43e
薪水100200300400500
请帮我解决这个问题.
I want to display the records in grid like this
Name xyz abc asd pqr rst
Address 12a 321b 43c 43d 43e
salary 100 200 300 400 500
plz help me out this.
推荐答案
Gridview也适合您的要求
假设您正在使用sql server....
尝试在sql server中进行数据透视查询,并以上述所需格式获取数据并将其绑定.
对于sql server中的数据透视,请查看以下链接
http://blog.sqlauthority.com/2008/06 /07/sql-server-pivot-and-unpivot-table-examples/ [ http://msdn.microsoft.com/en-us/library/ms177410.aspx [ ^ ]
希望对您有所帮助....
Hi,
Gridview also suits your requirement
Assuming you are using sql server....
Try Pivot query in sql server and get th data in the above required format and bind it.
For pivot in sql server have a look on the following links
http://blog.sqlauthority.com/2008/06/07/sql-server-pivot-and-unpivot-table-examples/[^]
http://msdn.microsoft.com/en-us/library/ms177410.aspx[^]
Hope this helps....
您确定要使用GridView
吗?Repeater
看起来很不错.
问候,
Eduard
Are you sure you want to useGridView
? ARepeater
looks good for this.
Regards,
Eduard
动态创建具有相同数据模式的数据表,并将其与网格视图绑定
Create datatable dynamically which have the same data schema , and bind it with the grid view
这篇关于我想创建水平网格视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文