Skip to main content
Tab

ASPxVerticalGrid.SortBy(VerticalGridRow, Int32) Method

Sorts data in ascending order by the values of the specified row, and places the row to the specified position among the sorted rows.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

public int SortBy(
    VerticalGridRow row,
    int value
)

Parameters

Name Type Description
row VerticalGridRow

A VerticalGridRow object that is the row in the ASPxGridView.

value Int32

An integer value that specifies the zero-based row’s index among the sorted rows. -1 if data is not sorted by this row.

Returns

Type Description
Int32

An integer value that specifies the zero-based row’s index among the sorted rows.

Remarks

The ASPxVerticalGrid allows data sorting by multiple rows. Any previous sorting is not cleared when calling the SortBy method. The newly sorted row is inserted at the specified position within the collection of sorted rows. Its position within the collection can then be changed using the VerticalGridDataRow.SortIndex property.

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

See Also