ComponentOne DataGrid for WPF and Silverlight
SortBy(DataGridColumn,DataGridSortDirection,Boolean) Method

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.
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 System.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

Reference

C1DataGrid Class
C1DataGrid Members
Overload List