Skip to main content

VerticalGridDataRow.SortOrder Property

Gets or sets the row’s sort order.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v22.2.dll

NuGet Package: DevExpress.Web


public virtual ColumnSortOrder SortOrder { get; set; }

Property Value

Type Default Description
ColumnSortOrder None

A ColumnSortOrder enumeration value that specifies the row’s sort order.

Available values:

Name Description

No sorting is applied to a column.


Sorts the column in ascending order.


Sorts the columns in descending order.


Read the SortOrder property’s value to determine which sort order is currently applied to the row. Assign a value to this property to sort data by the current row’s values.

You can also use the VerticalGridDataRow.SortAscending and VerticalGridDataRow.SortDescending methods to specify the desired sort order. To clear sorting, use the VerticalGridDataRow.UnSort method.

Any previous sorting is not cleared when changing the SortOrder property’s value. The new sort order applies an additional sorting condition to the one previously applied. The newly sorted row is added to the collection of sorted rows. Its index within the collection can be obtained using the VerticalGridDataRow.SortIndex property. The number of sorted rows is returned by the ASPxGridBase.SortCount property.

Sorting is allowed if the ASPxGridBehaviorSettings.AllowSort property is set to true.

See Also