A newer version of this page is available. Switch to the current version.

GridViewDataColumn.UnSort() Method

Clears the sorting applied to the column.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll


public void UnSort()
Public Sub UnSort


The UnSort method sets the GridViewDataColumn.SortIndex property to -1. The GridViewDataColumn.SortOrder property is automatically set to the ColumnSortOrder.None value.

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

See Also