DataControlBase.SortBy(ColumnBase, ColumnSortOrder, Int32) Method
In This Article
Sorts data by the values of the specified column in the specified order, and places the column at the specified position among the sorted columns.
Namespace: DevExpress.WinUI.Grid
Assembly: DevExpress.WinUI.Grid.v23.2.dll
NuGet Package: DevExpress.WinUI
#Declaration
public void SortBy(
ColumnBase column,
ColumnSortOrder sortedOrder,
int sortedIndex
)
#Parameters
Name | Type | Description |
---|---|---|
column | Column |
The grid column. |
sorted |
Column |
The column’s sort order. |
sorted |
Int32 | The column’s sort index. |
#Remarks
The GridControl allows you to sort its data by multiple columns. The GridControl does not clear previous sort options when you call the SortBy method.
Refer to the following help topic for more information: Sort Data.
See Also