1 minute read
Anyone who follows this blog or hears me speak at conferences knows that I am a *huge* fan of the Data View Web Part (DVWP).
A good friend sent me this quick question in an email today:
Content query webpart vs data view wp? When would you use content query over data view?
Here was the quick response I typed on my iPhone while waiting for a seat for dinner:
CQWPs are good if your users may need to reconfigure them over time because they can change the filtering and such in the Tool Pane. The drawback is that unless you get someone to write you new XSL to give you the styles you want, you’re stuck with what SharePoint gives you OOB. CQWPs also often deploy from environment to environment better because there’s more OOB to them.
DVWPs let you do basically anything you want by modifying them in SharePoint Designer. However, your users can’t do any reconfiguring on their own (unless they are SPD jocks). If DVWPs aren’t written intelligently, deployment *can* be a problem, but doesn’t have to be.
Because I find the DVWP so much more flexible, I usually choose it over a CQWP, but i do implement CQWPs from time to time as well.
What do you think?