[]
        
(Showing Draft Content)

C1.Ssrs.ReportSession.Sort

Sort Method

Sort(string, SortDirectionEnum, bool, CancellationToken)

Applies or removes a sort for the report based on a user sort action.

Declaration
public ReportPosition Sort(string sortID, SortDirectionEnum direction, bool clear, CancellationToken cancellationToken)
Parameters
Type Name Description
string sortID

The ID of the report item on which to sort.

SortDirectionEnum direction

A SortDirectionEnum value containing the direction for the sort.

bool clear

Indicates whether all other existing sorts should be cleared.

CancellationToken cancellationToken

CancellationToken that can be used to cancel an action.

Returns
Type Description
ReportPosition

ReportPosition object specifies position in the report where viewer should be focused after sorting.