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

GridViewModel.ApplySortingState(GridViewColumnState, Boolean) Method

Updates the state of the GridViewModel with the current sorting state of the GridView.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v18.2.dll


public void ApplySortingState(
    GridViewColumnState columnState,
    bool reset
Public Sub ApplySortingState(
    columnState As GridViewColumnState,
    reset As Boolean


Name Type Description
columnState GridViewColumnState

A GridViewColumnState object that contains the state of the sorting operation performed by an end-user on the client side.

reset Boolean

true to reset the previous sorting state; false otherwise.

See Also