Add a SharePoint list toolbar to a Data View

If your Data View uses a list or library as its data source, you can add the SharePoint list toolbar to the Data View so that you can work more effectively with the underlying list or library. The SharePoint list toolbar is the menu bar at the top of a list or library that provides various options to work with that list or library.

For example, if a Data View shows items in a document library, you can add the SharePoint list toolbar to the Data View so that users can easily interact with the underlying library in the browser, without having to navigate to that library. Using the toolbar on a Data View provides the same experience as when working with any list or library in a site. Adding the SharePoint list toolbar to a Data View makes it easy to perform a variety of tasks on the underlying list or library in the browser, such as adding a new item or column, changing list settings, or modifying list views.

Note   You can add the SharePoint list toolbar to a Data View only when the data source is a SharePoint list or library. Also, the Data View must reside in a Web Part zone for the toolbar to render correctly.

Adding the SharePoint list toolbar also applies CSS styles to the Data View, as shown here.

SharePoint list toolbar viewed in the browser

To learn more about Data Views, see the article Create a Data View.

In this article

Insert the Data View in a Web Part zone

Add the SharePoint list toolbar

Insert the Data View in a Web Part zone

  1. Open the page where you want to insert the Web Part zone.

  2. In Design view, click the location on the page where you want to insert the Web Part zone.

  3. On the Insert menu, point to SharePoint Controls, and then click Web Part Zone.

    The new Web Part zone is inserted on the page. Next, you have to insert the Data View in the Web Part zone.

  4. On the Data View menu, click Insert Data View.

    The Data Source Library task pane opens.

  5. In the Data Source Library, locate your data source, click it, and then click Show Data.

  6. In the Data Source Details task pane, hold down CTRL while you click the fields that you want to insert in the Data View, then click Insert Selected Fields as, and then click an option in the drop-down menu.

    The Data View is inserted in the Web Part zone. Now you are ready to add the SharePoint list toolbar.

Top of Page

Add the SharePoint list toolbar

  1. Right-click the Data View, and then click Show Common Control Tasks on the shortcut menu.

    Tip   You can also click the Data View, and then click the arrow Button image in the upper-right corner to show the Common Data View Tasks list. Click the arrow again to hide the list.

  2. In the Common Data View Tasks list, click Data View Properties.

  3. On the General tab, do one of the following:

    • To add the toolbar, select the SharePoint List Toolbar check box.

      Notes   

      • This option is available only if your data source is a SharePoint list or a library.

      • Adding the toolbar also applies certain CSS styles to the Data View.

    • To remove the toolbar, clear the SharePoint List Toolbar check box.

      Note   When you remove the toolbar, the CSS styles are still applied to the Data View. You can remove these styles manually — for more information, see the article Remove or delete a style.

      SharePoint List Toolbar option highlighted in Data View Properties dialog box

  4. Click OK.

When you preview the Data View page in the browser, the SharePoint list toolbar appears at the top of the Data View. Because you added the Data View to a Web Part zone, all of the rich features of a Web Part in a Web Part zone, such as modifying the appearance or layout of the Web Part, now become available to you.

Top of Page

Applies To: SharePoint Designer 2007



Was this information helpful?

Yes No

How can we improve it?

255 characters remaining

To protect your privacy, please do not include contact information in your feedback. Review our privacy policy.

Thank you for your feedback!

Support resources

Change language