Syncfusion.Grid.Windows
Example 


CommandStack Property (GridControl)

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

Syncfusion.Grid.Windows: 17.3460.0.26

See Also