Hi,
I am using ultrawingrid 2006 volume
I have situation where I want to know whether grid can undo or not. I have menu which I want to enable or disable on the basis of action.
If I changed any value in the cell then it should return me any value which indicate whether I should enable Undo menu or ReDo.
Is there any property like CanUndo and CanRedo.
Please suggest me.
Try this:
if ((this.ultraGrid1.CurrentState & UltraGridState.CanUndo) == UltraGridState.CanUndo)
Thanks Mike.
I have applied your suggestion but it is always return false. If I have edited the cell and then I call methed canundo and applied your suggested code,
public bool CanUndo() { if ((this.resultsGrid.CurrentState & UltraGridState.CanUndo) == UltraGridState.CanUndo) { return true; } return false; }
Please tell me what am I missing?