Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi
i Need to show a data in datagridview with row header and actual data should be arrange in column wise .The data will be binding from sql server 2008 table .I dont want to use any sql pivot options . Can i use row header has fixed value and data should bind from sql table .
So please suggest me Is there anyway to do that ?
    Name     lalit   abc      xyz
salary   1700$   550$     762$
Country  India   Syria   Saudi Arabia
Posted
Updated 20-Sep-13 7:10am
v3
Comments
Richard MacCutchan 20-Sep-13 8:04am    
Yes there are many ways, but we cannot suggest the best option without some more information. Please edit your question and fill in some proper detail about how you are getting the data and how you plan to transfer it into your grid.

1 solution

In such case the below link may be useful to you.

Pivoting DataTable Simplified[^]

Regards,
Kishor
 
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