Book Image

SharePoint Designer Tutorial: Working with SharePoint Websites

By : Mike Poole
Book Image

SharePoint Designer Tutorial: Working with SharePoint Websites

By: Mike Poole

Overview of this book

Table of Contents (17 chapters)
SharePoint Designer Tutorial
Credits
About the Author
About the Reviewer
Preface
Index

Sorting Data


Hopefully, by now you are impressed with how easy it is to display data using SharePoint Designer. When it comes to ordering our data, you will continue to be impressed.

We would like to sort our wines so that the cheapest wines appear first and the more costly bottles appear last. To do this, we use the sort feature:

  1. Right-click on our data view.

  2. Select Show Common Control Tasks.

  3. Select Sort and Group: from the list.

  4. Click on the Price(Number) field and click Add>>.

  5. Click on the ProductName field and click Add>>.

  6. Click OK.

It is worth noting that we can also group similar items together within the data view. For example, if our data specified whether the wine was red, white, or rosé, then we would be able to group the data by type.

Allowing Users to Sort the Data

It is easy for us to give users the ability to sort the records in the data view. We can enable this sorting like so:

  1. Click on our data view to select it.

  2. Go to Data View | Change Layout.

  3. Click on the General tab...