Click here to Skip to main content
15,900,378 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear all...
Please help me...I'm new to C# and sharepoint
I've already sort the items using camlquery, now i want to count rows that have same item.

My output like below:

ID Replies
1 a
  a
  a
  b
  b
2 a
  a
  b
  b
  b



but i want my output to be like this

ID Replies
1 Total a: 3
  Total b: 2
2 Total a: 2
  Total b: 3


please help me...
Thank you..
Posted
Updated 27-Oct-10 16:57pm
v4
Comments
RoopikaS 26-Oct-10 2:07am    
using (SPSite site = new SPSite(strListURL.Trim()))
{
using (SPWeb web = site.OpenWeb())
{
SPList list = web.Lists[strListName.Trim()];

SPView wpView = list.Views["All Items"];
[no name] 26-Oct-10 3:51am    
nice 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