Skip to main content
Tab

ASPxVerticalGrid.GetSortedRows() Method

Returns a collection of rows involved in sorting.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public ReadOnlyCollection<VerticalGridDataRow> GetSortedRows()

Returns

Type Description
ReadOnlyCollection<VerticalGridDataRow>

The collection of rows involved in sorting.

Remarks

The ASPxVerticalGrid allows data sorting by multiple rows. The GetSortedRows property provides access to the rows involved in sorting. This property can be used if you need to traverse through the sorted rows to perform operations on them. For example, you may want to change the sort order. Note that this collection is read only; it doesn’t allow rows to be added or removed. To apply or cancel sorting by row values, use the row’s VerticalGridDataRow.SortOrder property.

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

To learn more, see Sorting.

See Also