The UserSort type exposes the following members.

Methods

  Name Description
Public method AssignFrom
Copies properties from another UserSort to the current object.

Properties

  Name Description
Public property SortExpression
Gets or sets the expression on which to sort. Has the same restrictions as a Group Filter expression. Aggregates used in SortExpression may only use scopes which equal or contain the SortExpressionScope. Aggregates without an explicit scope are not allowed in SortExpression if no SortExpressionScope is specified.
Public property SortExpressionScope
Gets or sets the name of the scope (data region or group) in which to evaluate the SortExpression. If omitted, the expression will be evaluated and the sort will be performed independently in each detail scope within the SortTarget. Must be a scope that is equal to or contained within the current scope. If the Textbox has no current scope (in other words, it is not contained in any data region), SortExpressionScope must be equal to or contained within the SortTarget. Cannot be a detail scope (that is, a group with no group expressions). The data set for SortExpressionScope must be the same as the data set for the SortTarget. Sorting takes place within the group containing the SortExpressionScope. For example: In a Tablix with a country group and a city group with UserSort on each header and SortExpressionScope of the corresponding group, the country sort will sort the country groups within the tablix and the city sort will sort the city groups within each country group (without rearranging the country groups).
Public property SortTarget
Gets or sets the name of the data region, group or data set to apply the sort to. If omitted, the sort will apply to the instance of the current scope. Must be the current scope, an ancestor scope, or a peer scope which is a data region.

See Also