This example demonstrates how to sort data by OLAP member properties using the CustomServerModeSort event. In this example, the "Product" field's values are sorted by the "List Price" OLAP member property. The "List Price" member property values are displayed near the Products field values.
Note that this sample demonstrates how to sort data manually using the CustomServerModeSort event. If you want to sort data by an attribute value, use the PivotGridFieldBase.SortByAttribute property instead.