且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将ASP.net数据网格行显示为列,反之亦然?

更新时间:2023-02-04 15:36:46

您确定要使用GridView吗?因为Repeater就可以了.

问候,
爱德华(Eduard)
Are you sure you want to use GridView? Because a Repeater is fine with that.

Regards,
Eduard


您可以使用PIVOT 命令 [ ^ ]可以在行和列之间进行切换在查询本身中.
You can use the PIVOT command[^] to switch between rows and columns in your query itself.