FlexReport for .NET | ComponentOne
C1.Document Assembly / C1.Ssrs Namespace / ReportSession Class / Sort Method
The ID of the report item on which to sort.
A SortDirectionEnum value containing the direction for the sort.
Indicates whether all other existing sorts should be cleared.
System.Threading.CancellationToken that can be used to cancel an action.

In This Topic
    Sort Method (ReportSession)
    In This Topic
    Applies or removes a sort for the report based on a user sort action.
    Syntax
    'Declaration
     
    Public Function Sort( _
       ByVal sortID As String, _
       ByVal direction As SortDirectionEnum, _
       ByVal clear As Boolean, _
       ByVal cancellationToken As CancellationToken _
    ) As ReportPosition

    Parameters

    sortID
    The ID of the report item on which to sort.
    direction
    A SortDirectionEnum value containing the direction for the sort.
    clear
    Indicates whether all other existing sorts should be cleared.
    cancellationToken
    System.Threading.CancellationToken that can be used to cancel an action.

    Return Value

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