Quantcast
Channel: SharePoint 2010 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 17574

To display count of Boolean values

$
0
0

i have a datatable dt.Which i got from querying list in sharepoint as follows

id   isreadonly(Boolean)
1       yes 
1       yes 
1       no  
1       no
2       yes
2       no

i need to display the count of yes/no as following in datatable

id    countisreadonly(Yes)   countIsNotReadonly(No)
1         2                                    2
2         1                                    1  

any pointers towards this will be helpful.Thanks In Advance


Viewing all articles
Browse latest Browse all 17574

Trending Articles