Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
How to display an ASP.net datagrid rows as columns and vice versa?


I have Table in database like
Name City Age
xxx yyy zzz


I need to display like

Name xxx

City yyy

Age zzz


Thanks in Advance....
Posted

Are you sure you want to use GridView? Because a Repeater is fine with that.

Regards,
Eduard
 
Share this answer
 
Comments
Muthu Vinoth Kumar 11-Dec-11 23:30pm    
i need paging also..so 1ly i select Grid
You can use the PIVOT command[^] to switch between rows and columns in your query itself.
 
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