VerticalGridDataRow.SortOrder Property
Gets or sets the row’s sort order.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.1.dll
NuGet Package: DevExpress.Web
Declaration
[DefaultValue(ColumnSortOrder.None)]
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 |
---|---|
None | No sorting is applied to a column. |
Ascending | Sorts the column in ascending order. |
Descending | Sorts the columns in descending order. |
Remarks
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
.