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.v24.1.dll
NuGet Package: DevExpress.Web
Declaration
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
.