Skip to main content
A newer version of this page is available. .

TableQuery.Sorting Property

Provides access to sort settings used to order the result set of the current TableQuery by the specified column(s).

Namespace: DevExpress.DataAccess.Sql

Assembly: DevExpress.DataAccess.v18.2.dll

Declaration

[Browsable(false)]
public SortingInfoList Sorting { get; }

Property Value

Type Description
SortingInfoList

A SortingInfoList object providing access to the collection of SortingInfo objects that specify sort settings.

Remarks

You can sort the result set by the specified column contained in the TableQuery in the following way.

  1. Pass the table name, the column name and the sort order to the SortingInfo constructor.
  2. Add the resulting SortingInfo object to the Sorting collection using the SortingInfoList.Add method.
See Also