Answered by:
Remove the Group by item count number

>
Question
-
When you modify the view of a WSS list to group items (by using the "Group by" view customization) it adds the total number of items in () beside the item.
Can this total / item count number be removed / turned off?
paddy ryanFriday, January 8, 2010 10:51 AM
Answers
-
Hi,
You can try to convert the list view to XSLT Data View, after that the total column per group will disappear. Or you can create a data view to display the list and then use group in the data view.
Hope it helps.
Xue-Mei Chang- Marked as answer by Xue-Mei Chang-MSFTModerator Friday, January 15, 2010 8:34 AM
Tuesday, January 12, 2010 3:22 AMModerator -
Hi there Paddy,
XSLT = Extensible Stylesheet Language Transformation
In Sharepoint Designer, if you right-click on a list view web part and select this option it will convert the list view code into an XSLT Data View.
Caution though, if switch to the XSLT Data View, you not be able to modify the view from the browser. The only option available will be to change the name of the view. You can overcome this by opening the view in SharePoint Designer and right-clicking on the web part again and selecting Revert to SharePoint list view. This will remove any of the customizations that you made, though, but it will allow you to edit the view in the browser again.
For more information on doing this take a look at this thread:
http://www.sharepoint-tips.com/2007/05/sharepoint-designer-article-2-creating.html
Hope this helps
Cheers
Geoff- Marked as answer by Xue-Mei Chang-MSFTModerator Friday, January 15, 2010 8:34 AM
Thursday, January 14, 2010 2:36 PM
All replies
-
Hi there Paddy,
Theres a link that describes how using the dataview web part you could do a group by without the count. First off, check out the dataview web part in SharePoint designer here:
http://www.sharepoint-tips.com/2007/05/sharepoint-designer-article-2-creating.html
Note that after you follow the steps, use the 'Common Control Tasks' option, and select grouping to group by the field you want to.
Hope this helps
Cheers
GeoffFriday, January 8, 2010 11:59 PM -
Hi,
You can try to convert the list view to XSLT Data View, after that the total column per group will disappear. Or you can create a data view to display the list and then use group in the data view.
Hope it helps.
Xue-Mei Chang- Marked as answer by Xue-Mei Chang-MSFTModerator Friday, January 15, 2010 8:34 AM
Tuesday, January 12, 2010 3:22 AMModerator -
what is a "XSLT Data View" ?
paddy ryanThursday, January 14, 2010 2:08 PM -
Hi there Paddy,
XSLT = Extensible Stylesheet Language Transformation
In Sharepoint Designer, if you right-click on a list view web part and select this option it will convert the list view code into an XSLT Data View.
Caution though, if switch to the XSLT Data View, you not be able to modify the view from the browser. The only option available will be to change the name of the view. You can overcome this by opening the view in SharePoint Designer and right-clicking on the web part again and selecting Revert to SharePoint list view. This will remove any of the customizations that you made, though, but it will allow you to edit the view in the browser again.
For more information on doing this take a look at this thread:
http://www.sharepoint-tips.com/2007/05/sharepoint-designer-article-2-creating.html
Hope this helps
Cheers
Geoff- Marked as answer by Xue-Mei Chang-MSFTModerator Friday, January 15, 2010 8:34 AM
Thursday, January 14, 2010 2:36 PM -
<style type="text/css">.ms-gb span{display: none!important;}</style>
this works for me
Friday, November 27, 2015 11:49 AM -
hello! This sure do works, but the downside is that it hides the "expand/collapse" button as well.
Is there a way to tweak the css such that it only hides the count and shows the button?Hope to hear from u soon!
Thursday, March 10, 2016 12:00 PM -
Curious if there is override script for SP 2007 that hides expand/collapse buttons in group-by lists. Have not been able to locate anything yet and really hope there is something out there. Thanks!Thursday, April 28, 2016 12:58 AM