Display sample data in a Data View

On occasion, you may find it useful to display sample data in a Data View. For example, if the data source contains hundreds of records, it is faster and easier to modify the appearance of a Data View while it displays sample data instead of your real data. Or you may want to display sample data while you modify the Data View because the data source may be new and not yet contain any data, or you may be working with the Business Data Web Part, which does not display any data. With Microsoft Office SharePoint Designer 2007, you can easily display sample data in a Data View.

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

  1. Open the page that contains the Data View that you want to change.

  2. 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.

  3. In the Common Data View Tasks list, select the Show with sample data check box.

    Sample data in a Data View

  4. To restore the default view, in the Common Data View Tasks list, clear the Show with sample data check box.

    Notes   

    • If you have a Data View set to display more than five records, and you choose to display sample data, only five sample records appear in your sample Data View. However, the Data View still displays more than five records when displaying real data.

    • Sample data appears only in Design view. When you choose to display sample data, your real data is unaffected.

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