Skip to main content

GridColumnSortInfo.SetSortOrder(GridColumn, ColumnSortOrder) Method

Sorts data in the specific column.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v24.2.dll

Declaration

public virtual void SetSortOrder(
    GridColumn column,
    ColumnSortOrder sortOrder
)

Parameters

Name Type Description
column GridColumn

A GridColumn that needs to be sorted.

sortOrder ColumnSortOrder

A ColumnSortOrder enumeration value that specifies whether data in the target column should be sorted ascending or descending.

See Also