aspnet-devexpress-dot-web-dot-aspxverticalgrid-c0663dce.md
Occurs before a row is sorted.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
public event ASPxVerticalGridBeforeRowSortingEventHandler BeforeRowSorting
Public Event BeforeRowSorting As ASPxVerticalGridBeforeRowSortingEventHandler
The BeforeRowSorting event's data class is ASPxVerticalGridBeforeRowSortingEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| OldSortIndex | Gets a column’s (row’s for ASPxVerticalGrid) previous position among sorted columns (rows). Inherited from ASPxGridBeforeColumnGroupingSortingEventArgs. |
| OldSortOrder | Gets a column’s (row’s for ASPxVerticalGrid) previous sort order. Inherited from ASPxGridBeforeColumnGroupingSortingEventArgs. |
| Row | Gets a row whose sort order has been changed. |
The event parameter’s properties allow you to obtain a row’s previous sort order, and its position among sorted rows. The processed row is returned by the ASPxVerticalGridBeforeRowSortingEventArgs.Row property.
See Also