Skip to main content

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.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

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 snippet (auto-collected from DevExpress Examples) contains a reference 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