Syncfusion.Grid.Windows
Example 


CommandStack Property (GridModel)

Gets undo and redo in the grid.
Syntax
'Declaration
 
<BrowsableAttribute(False)>
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)>
Public ReadOnly Property CommandStack As GridModelCommandManager
'Usage
 
Dim instance As GridModel
Dim value As GridModelCommandManager
 
value = instance.CommandStack
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public GridModelCommandManager CommandStack {get;}
Example
This example shows how to use the CommandStack property.
// Undo the actions in the grid.
this.gridControl1.Model.CommandStack.Undo();
//Redo the actions in the grid.
this.gridControl1.Model.CommandStack.Redo();
// Getting the current command mode of the grid.
GridCommandMode commandMode = this.gridControl1.Model.CommandStack.Mode;
' Undo the actions in the grid.
Me.gridControl1.Model.CommandStack.Undo()
'Redo the actions in the grid.
Me.gridControl1.Model.CommandStack.Redo()
' Getting the current command mode of the grid.
Dim commandMode As GridCommandMode = Me.gridControl1.Model.CommandStack.Mode
AssemblyVersion

Syncfusion.Grid.Windows: 17.3460.0.26

See Also