[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]ASP.NET WebForms Controls
 [Collapse]ASP.NET MVC Extensions
  [Expand]Product Information
  [Expand]Getting Started
  [Expand]Common Concepts
  [Collapse]Grid View
    Overview - GridView
    Main Features - GridView
   [Collapse]Concepts
    [Collapse]Binding to Data
      Binding to Data via Entity Framework (Code First)
      Binding to Data via Entity Framework or LINQ to SQL (Database First)
      Binding to Large Data (Database Server Mode)
     [Collapse]Custom Data Binding
       Custom Data Binding - Overview
       Action Types and Passed Parameters
       Methods to Update the Grid State in Actions
       ProcessCustomBinding - Available Binding Delegates
       Implementation of Typed Method Delegates
       Custom Binding Limitations
    [Expand]Data Representation Basics
    [Expand]Data Shaping and Manipulation
    [Expand]Focus and Navigation
    [Expand]Data Editing and Validation
    [Expand]Exporting
   [Expand]Visual Elements
   [Expand]Member Tables
   [Expand]Examples
  [Expand]Tree List
  [Expand]Card View
  [Expand]Reporting
  [Expand]Charting
  [Expand]Pivot Grid
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Scheduler
  [Expand]Site Navigation and Layout
  [Expand]HTML Editor
  [Expand]Vertical Grid
  [Expand]Data Editors Extensions
  [Expand]Docking and Popups
  [Expand]File Management
  [Expand]Data and Image Navigation
  [Expand]Multi-Use Site Extensions
  [Expand]SpellChecker
  [Expand]Query Builder
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Methods to Update the Grid State in Actions

When you handle specific data operations (paging, sorting, grouping or filtering) in the corresponding Actions, you need to update the grid state with the state of the currently processed operation. You can do this with ease by using specific operation-related methods exposed by the GridViewModel object. Each method accepts a parameter/parameters representing the currently processed data operation's state, which is automatically passed to a handling Action.

Operation Method Call with the Accepted Parameter(s) (Passed to Action)
Paging (GridViewOperationType.Paging) GridViewModel.ApplyPagingState ApplyPagingState(GridViewPagerState pagerState)
Sorting (GridViewOperationType.Sorting) GridViewModel.ApplySortingState ApplySortingState(GridViewColumnState columnState)
ApplySortingState(GridViewColumnState columnState, bool reset)
Grouping (GridViewOperationType.Grouping) GridViewModel.ApplyGroupingState ApplyGroupingState(GridViewColumnState columnState)
Filtering (GridViewOperationType.Filtering) GridViewModel.ApplyFilteringState ApplyFilteringState(GridViewFilteringState filteringState)

or (if only one column can be filtered within the grid at a time):
ApplyFilteringState(GridViewColumnState columnState)

Refer to the Action Types and Passed Parameters topic to learn more on operation-specific parameters passed to handling Actions automatically.

Is this topic helpful?​​​​​​​