ComponentOne ReportViewer for ASP.NET Web Forms
C1.C1Report.4 Assembly / C1.C1Preview.DataBinding Namespace / SortExpressionCollection Class / Add Method / Add(String,SortDirectionEnum) Method
The sort expression text.
The sort direction.

In This Topic
    Add(String,SortDirectionEnum) Method
    In This Topic
    Adds a SortExpression specified by the expression text and sort direction to the current collection.
    Syntax
    'Declaration
     
    Public Overloads Function Add( _
       ByVal expression As System.String, _
       ByVal sortDirection As SortDirectionEnum _
    ) As SortExpression
    public SortExpression Add( 
       System.string expression,
       SortDirectionEnum sortDirection
    )

    Parameters

    expression
    The sort expression text.
    sortDirection
    The sort direction.

    Return Value

    The SortExpression object that was created and added to the current collection.
    See Also