ComponentOne DataGrid for WPF and Silverlight
C1.WPF.DataGrid Namespace / C1DataGrid Class / SortBy Method / SortBy(DataGridColumn,DataGridSortDirection,Boolean) Method
The column that will be ordered.
The order of the column.
If true the sorting state of the other columns will be preserved.

In This Topic
    SortBy(DataGridColumn,DataGridSortDirection,Boolean) 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, _
       ByVal preservePreviousSorting As Boolean _
    ) 

    Parameters

    column
    The column that will be ordered.
    direction
    The order of the column.
    preservePreviousSorting
    If true the sorting state of the other columns will be preserved.
    Exceptions
    ExceptionDescription
    This exception is raised whether the collection view is not ready to execute a sort operation.
    See Also