Click here to Skip to main content
15,889,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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



Empid 101 102
Empname ddd lll
Salary 1212 4545
Posted
Updated 21-Jan-11 19:35pm
v2
Comments
Indivara 22-Jan-11 1:36am    
Updated title, converted table to HTML (just for fun. I'm bored...)

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900