ComponentOne DataGrid for WPF and Silverlight
C1.WPF.DataGrid Namespace / C1DataGrid Class / SortBy Method / SortBy(DataGridColumn,DataGridSortDirection) Method
The column that will be ordered.
The order of the column.

In This Topic
    SortBy(DataGridColumn,DataGridSortDirection) Method
    In This Topic
    Sorts the data by the specified column and direction.
    Syntax
    'Declaration
     
    
    Public Overloads Sub SortBy( _
       ByVal column As DataGridColumn, _
       ByVal direction As DataGridSortDirection _
    ) 

    Parameters

    column
    The column that will be ordered.
    direction
    The order of the column.
    Exceptions
    ExceptionDescription
    This exception is raised whether the collection view is not ready to execute a sort operation.
    See Also