ASPxGridBase.ClearSort() Method
Clears the sorting applied to the grid control.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.1.dll
NuGet Package: DevExpress.Web
Declaration
Remarks
When you call the ClearSort
method, the control clears the sorting and grouping applied to its data.
For more information on sorting in a particular control, refer to the following topics:
Web Forms Example
<dx:ASPxGridView ID="ASPxGridView1" runat="server" onCustomCallback="ASPxGridView1_CustomCallback" >
<$--...--$>
</dx:ASPxGridView>
protected void ASPxGridView1_CustomCallback(object sender, DevExpress.Web.ASPxGridViewCustomCallbackEventArgs e) {
ASPxGridView1.ClearSort();
}
MVC Example
@Html.DevExpress().GridView(settings => {
settings.BeforeGetCallbackResult = (sender, e) => {
MVCxGridView grid = (MVCxGridView)sender;
grid.ClearSort();
//...
};
}).Bind(Model).GetHtml()
See Also