Click here to Skip to main content
14,699,197 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i have a database of student attendance.With columns as atten_date|1|2|3|4|5.....70
and every day new row added with today's date and attendance of each student.
i want to display this using gridview.
i want to display row as column in gridview.
eg:current display
atten_date |1| 2| 3| 4| 5......70
05-03-2015|1|0|1|1|1|0|1|0|0....
.
.
.
.
i want to display like
atten_date| 04-03-2015|05-03-2015........
1
2
3
.
.
.
.
70
Posted
Updated 5-Mar-15 5:14am
v3
Comments
santosh_131 5-Mar-15 14:52pm
   
this might help you
http://www.codeproject.com/Articles/44274/Transpose-a-DataTable-using-C
batman56 5-Mar-15 23:04pm
   
thank you.

1 solution

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