Intersoft WebGrid Documentation
How-to: Undo changes on specific row
See Also Send comments on this topic.

Glossary Item Box

WebGrid provides a method to undo changes on specific row.

In this topic, you will learn how to cancel changes in the BatchMode update WebGrid.

To get pending changes based on row state

Using Context Menu

  1. Open the review changes window, by clicking the Review Pending Changes button in the WebGrid status bar or clicking the Review Changes... item on the context menu.



  2. Select the row you would like to cancel update/delete.
  3. Click the "Undo Selected" button.

 

Using Client-side

  1. Use this snippet to cancel changes on the first changed row.
    C# Copy Code
    var grid = ISGetObject("WebGrid1");
    grid.GetChanges()[0].Row.UndoChanges();
    

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.