Welcome to LightSwitch Desktop Edition > OLAP for LightSwitch Overview > OLAP for LightSwitch Task-Based Help > Grouping Data |
You can use field formatting to group data at run time. Suppose you have a bound list of products and you want to group together all of the items ordered within the same year. This example assumes a data source similar to the Northwind sample database.
The following images show the grid before grouping and after grouping. In the Before Grouping image, the OrderDates are not grouped. In the After Grouping image, the products are grouped together by the year they were purchased.
Before Gouping
After Grouping