Skip to main content
A newer version of this page is available. .

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

Declaration

public void ApplySortingState(
    GridViewColumnState columnState,
    bool reset
)

Parameters

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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ApplySortingState(GridViewColumnState, Boolean) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also