互换中继器控制行和列 [英] Interchange repeater control rows and columns

查看:82
本文介绍了互换中继器控制行和列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我有一个小问题,即我想在转发器控件中将列以行和行以水平方式交换

实际表是这样的

Empid Empname salary
101 ddd 1212
102 lll 4545


我期望的是

Hi everybody,
I have a small problem i.e I wanna interchange columns as rows and rows as horizontally in repeater control

Actual table is like this

Empid Empname salary
101 ddd 1212
102 lll 4545


What I am expecting is

推荐答案

以下链接应为您提供帮助:

ASP.NET绑定:DataGrid到垂直表 [通过转置DataTable来转置DataGrid或GridView [
The below links should help you:

ASP.NET Binding: DataGrid to Vertical Table[^]

Transpose DataGrid or GridView by transposing DataTable[^]

These are for DataGrid and GridView, but you will get an idea on how it is done.


这篇关于互换中继器控制行和列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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