---
title: GridRowViewModelExtensions
summary: API reference for GridRowViewModelExtensions.
status: draft
owner: SAIF Documentation
last_reviewed: 2026-09-17
library: SAIF.Framework.Web.Mvc
reference_type: package
---

# GridRowViewModelExtensions

Single extension method that resets a grid's pending-change tracking after a successful save while deliberately preserving the currently displayed rows.

## Purpose
- Single extension method that resets a grid's pending-change tracking after a successful save while deliberately preserving the currently displayed rows.

## Context
- Namespace: `SAIF.Web.Mvc.ViewModels`
- Assembly/package: `SAIF.Framework.Web.Mvc (source-shipping NuGet package)`
- Kind: static class

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| ClearAll<T>(GridViewModel<T>) | `public static void ClearAll<T>(this GridViewModel<T> grid)` | Replaces `Added`, `Deleted`, and `Updated` with new empty lists, leaving `Rows` untouched; see the "Clear grid pending-change collections" operation and [BR-64](../../business-rules.md#br-64-clearing-a-grid-resets-only-pending-change-collections). |

## Sources
- `src/Web.Mvc/ViewModels/GridRowViewModel.cs`
