Hi
I am looking for way to transpose from Horizontal grid to Vertical. Is it possible?
For example:
The database has fields 1 2 3 4 5 6 and corresponding data to the fields. So if I put a datagrid and connect it to the database I will get what ever data is shown in the database which is horizontal way
1 2 3 4 5
10 20 30 40 50
but I would like the above to be shown in vertical way (Transpose). As shown below:
1 10
2 20
3 30
4 40
5 50
Is this possible? if so how?
Awaiting your response!
Thanks!
arun raiPosted Jun 17, 2008, 6:35 PM
Raam KumarPosted May 7, 2008, 10:05 AM
Hi
Thanks for the reply but datalist is for website.. I am looking for a way on my windows application form? Hence I chose dataList?
Still looking for a way to get the transpose?
Awaiting your response!
Thanks!
Niradhip ChakrabortyPosted May 7, 2008, 1:01 AM
I am not sure whether u can do it by using datagrid or not.
But u can do it by using datalist.
Check out the following link.
http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.datalist.repeatdirection.aspx