Display Views via Web Parts in SharePoint 2010
In SharePoint 2010, you want to display your list with other text and Web Parts in multiple locations, such as team site home pages, Web Part pages, or publishing pages. In these situations, you don’t want your users to interact with the list page itself with all the editing options. You just want them to see several columns to access a document or view a list item.
Each list generates a List View Web Part that can be used on Web Part pages and publishing pages, in multiple locations if necessary. Each of these Web Parts has a Properties panel that allows you to change the view in that instance of the Web Part.
Predefined SharePoint lists may have specific views that are defaults for Web Parts (for example, Announcements has a special default view that can’t be recreated in the browser for other lists). Custom lists generally show all columns when first generated.
After selecting the Modify Shared Web Part command on the Web Part, you can use the Selected View drop-down list in the Web Part Properties panel to apply another view, or you can also click the Edit the Current View hyperlink to modify the view on-the-fly. Depending on the complexity of your choices, creating a view first to apply to the Web Part(s) may be a better long-term maintenance strategy.
The List View Web Part is technically the XSLT List View Web Part, or XLV. In the browser, this Web Part behaves very similar to how it behaved in previous versions of SharePoint 2010. Crack open a view in SharePoint Designer 2010, however, and it’s a whole new world.
These Web Parts still use Collaborative Application Markup Language (CAML) to specify queries. However, CAML is no longer used for specifying the display. Instead, the industry standard Extensible Stylesheet Language, the XSLT in the name of the Web Part, is used to specify the display of the list’s content.