Click here to Skip to main content
15,923,689 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a table like this


Period	EmployeeId	SubjectName	Class	Section	TDay
I   	E10001	            Math	IV	   A	Monday    
II   	E10002	            Math	V	   B	Tuesday   
IV   	E10002	            Math	I	   c	Monday    
V   	E10001	            Math	III	   A	Tuesday 
II   	E10001	            Math	II	   c	Monday



and i want these data in datagridveiw like this

empid=E10001

period     I               II           III        IV        V
Monday   class IV A      class II c      
Tuesday                                                   class III c




how could i access data like this through code in my datagridveiw?
Posted

1 solution

 
Share this answer
 
Comments
143Deepak 7-Aug-12 5:18am    
but sir to pivot a table ,the column should be integer on which the aggregations will be applied and i have all of my column in char or varchar.

i tried much after reading your solution but did not get what i want.

know what to do?

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