BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
To handle the Undo/Redo operations in GridControl, you can set CommandStack.Enabled property.
Please find below code example for your reference.
' Disable Undo/Redo operations. Me.gridControl1.CommandStack.Enabled = False |
Similar information have been discussed in the below UG and sample below.
http://help.syncfusion.com/ug/windows%20forms/index.html#!documents/thebasics.htm
Sample: VB
Please let us know if you have any concerns.
Regards,
Mahendran.A
To enable or disable buttons based on Undo/Redo operations, it can be done by checking CommandStack.UndoStack property. If the count of CommandStack is greater than zero, you can enable or disable those buttons. Please find the code snippet below.
Private Sub gridControl1_CellsChanged(ByVal sender As Object, ByVal e As GridCellsChangedEventArgs) 'Enabling or disabling Undo and Redo buttons. If Me.gridControl1.CommandStack.UndoStack.Count > 0 Then Me.BtnUndo.Enabled =Me.gridControl1.CommandStack.UndoStack.Count > 0 End If
If Me.gridControl1.CommandStack.RedoStack.Count > 0 Then Me.btnRedo.Enabled = Me.gridControl1.CommandStack.RedoStack.Count > 0 End If End Sub |
Sample: UndoRedo_VB
Please let me know of you have any concerns.
Thanks,
Mahendran.A