alexa
menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class DataGridUndoRedoController

    Manages undo and redo operations for cell editing in SfDataGrid.

    Inheritance
    System.Object
    DataGridUndoRedoController
    Namespace: Syncfusion.Maui.DataGrid
    Assembly: Syncfusion.Maui.DataGrid.dll
    Syntax
    public class DataGridUndoRedoController : BindableObject

    Constructors

    DataGridUndoRedoController(SfDataGrid)

    Initializes a new instance of the DataGridUndoRedoController class.

    Declaration
    public DataGridUndoRedoController(SfDataGrid dataGrid)
    Parameters
    Type Name Description
    SfDataGrid dataGrid

    The parent SfDataGrid control.

    Exceptions
    Type Condition
    System.ArgumentNullException

    Thrown when dataGrid is null.

    Fields

    RedoCountProperty

    Bindable property for redo count.

    Declaration
    public static readonly BindableProperty RedoCountProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    UndoCountProperty

    Bindable property for undo count.

    Declaration
    public static readonly BindableProperty UndoCountProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    Properties

    RedoCount

    Gets the count of redo operations available in the redo stack.

    Declaration
    public int RedoCount { get; }
    Property Value
    Type
    System.Int32

    UndoCount

    Gets the count of undo operations available in the undo stack.

    Declaration
    public int UndoCount { get; }
    Property Value
    Type
    System.Int32

    Methods

    ClearHistory()

    Clears all undo and redo history.

    Declaration
    public void ClearHistory()

    ClearHistoryDueToGridChange()

    Clears all undo and redo history due to a structural change in the grid

    Declaration
    public void ClearHistoryDueToGridChange()

    Redo()

    Reapplies the most recently undone cell edit.

    Declaration
    public void Redo()

    Undo()

    Reverts the most recent cell edit by undoing its change.

    Declaration
    public void Undo()
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved