Skip to main content

DataControlBase.SortBy(String) Method

Sorts data by the values of the specified column.

Namespace: DevExpress.WinUI.Grid

Assembly: DevExpress.WinUI.Grid.v23.2.dll

NuGet Package: DevExpress.WinUI

Declaration

public void SortBy(
    string fieldName
)

Parameters

Name Type Description
fieldName String

The column’s field name.

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.

If the GridControl‘s data is not sorted by the specified column, the SortBy method sorts data by its values in ascending order.

Refer to the following help topic for more information: Sort Data.

See Also