Click here to Skip to main content
15,902,198 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello...
can anybody help me...i'm new in sharepoint 2010
i want to create a view for my list using c# visual studio 2010
i've already sort the list using SPQuery
my gridview output is like below...


ID Answer
1 a
  a
  b
  b
  c
2 a
  a
  b
  c


but, i want the gridview view the items like this


ID Answer
1 Total a: 2
  Total b: 2
  Total c: 1
2 Total a: 2
  Total b: 1
  Total c: 1



please help me..
thank you..
~Laili~
Posted
Updated 4-Oct-10 21:42pm
v3

1 solution

Some threads that answer your question.
1) http://social.msdn.microsoft.com/Forums/en-US/winformsdatacontrols/thread/25bc9188-61a6-4f7b-97ae-03164b558ee1[^]
2) http://forums.asp.net/t/1153938.aspx[^]

You could also do this by writing the query in such a way that will include the result count.
 
Share this answer
 
v2

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