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

I have been looking for a way to display the Group By headers of a ListView or DataView web part for those groups that are empty. It seems that as no record is set forth to parse, the empty Group Header is not available to display. It would seem to me that I would then need to include at least one record in each group to get the header to display. I would like to not have this 'special' record appear in ListView. Where might I insert a test against the 'special' case record and have it skip rendering the record in question and then continue along in the rendering loop? Is there an easier way to meet this same goal?

share|improve this question

You would apply a filter to the list view (Modify this view, scroll down to the filter section) so that items are omitted and set the group by field to be whatever you want to group on

share|improve this answer
If I filter out the data such that the group is empty, I don't get a group header. As I have been looking at this, it seems the header is drawn from the data passed to the page to parse. If no data exists with the column data, that column cannot be used to make a group header. I need to pass information with the group header title, but not render the given line. – EFH Jan 22 '13 at 18:56

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.