SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On my SharePoint 2007 site, I have a custom list. This list has a column "status" (with values "open" and "closed"). I can create a view on the list that groups by "status", and the view creates nice plus/minus signs to easily expand/contract the grouped view. However, if I use a content query web part (CQWP) to query this list, and group by status, the grouping does not create the plus and minus signs to expand and contract the grouped column (instead, all items are displayed under the grouped headings).

For example, suppose there are 5 items in the list, 2 are open, and 3 are closed. If I setup a CQWP to query the list and group by "status", the following happens:

Actual result:

CQWP Box Boundary


item 1
item 2
item 3


item 4
item 5
/CQWP Box Boundary

Desired result:

CQWP Box Boundary

[+] status: closed (3)

[+] status: open (2)

/CQWP Box Boundary

In the 'desired result', clicking on the [+] button should expand one of the groups. I'm pretty sure I must use a CQWP, because the custom list exists in a root site, and the CQWPs will be on many different sub-sites, querying the custom list (with some filters per subsite).

share|improve this question

migrated from Oct 11 '11 at 11:21

This question came from our site for professional and enthusiast programmers.

up vote 0 down vote accepted

This type of grouping is not possible out of the box with CQWP. You can acheive similar functions probably with jQuery or some other custom solution, but you might be better off looking at creating a data view web part (DVWP) using SharePoint Designer or using a third party tool.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.